PureBasic - Gadget
Overview
The Gadgets in PureBasic (in other languages also called "controls" or "widgets") are a generic name for all the interface components: button, combobox, listview, panels, ... This library is OS independent and uses the real OS Graphical User Interface (GUI) components.
Before using gadgets there will be normally opened a window first, furthermore there will be often used menus, toolbars and statusbars when creating graphical user interfaces.
The functions that create a new gadget return the new gadget number (called #Gadget in this library) if #PB_Any was used to create the gadget. If a static number was given to identify the gadget instead of #PB_Any, then the functions return the OS identifier for the created Gadget. These OS identifiers (or also called handles) can be used for other PureBasic functions, as well for WinAPI functions like SendMessage_() etc. Look at the chapter Handles and Numbers in the reference manual for more information. If you want to create GUI dialogs with automatic layout support take a look at the dialog library.
Command Index
AddGadgetColumn
AddGadgetItem
BindGadgetEvent
ButtonGadget
ButtonImageGadget
CalendarGadget
CanvasGadget
CanvasOutput
CanvasVectorOutput
ChangeListIconGadgetDisplay (deprecated)
CheckBoxGadget
ClearGadgetItemList (deprecated)
ClearGadgetItems
CloseGadgetList
ComboBoxGadget
ContainerGadget
CountGadgetItems
CreateGadgetList (deprecated)
DateGadget
DisableGadget
EditorGadget
ExplorerComboGadget
ExplorerListGadget
ExplorerTreeGadget
FrameGadget
FreeGadget
GadgetHeight
GadgetID
GadgetItemID
GadgetToolTip
GadgetType
GadgetWidth
GadgetX
GadgetY
GetActiveGadget
GetGadgetAttribute
GetGadgetColor
GetGadgetData
GetGadgetFont
GetGadgetItemAttribute
GetGadgetItemColor
GetGadgetItemData
GetGadgetItemState
GetGadgetItemText
GetGadgetState
GetGadgetText
HideGadget
HyperLinkGadget
IPAddressGadget
ImageGadget
IsGadget
ListIconGadget
ListViewGadget
MDIGadget
OpenGLGadget
OpenGadgetList
OptionGadget
PanelGadget
ProgressBarGadget
RemoveGadgetColumn
RemoveGadgetItem
ResizeGadget
ScrollAreaGadget
ScrollBarGadget
SetActiveGadget
SetGadgetAttribute
SetGadgetColor
SetGadgetData
SetGadgetFont
SetGadgetItemAttribute
SetGadgetItemColor
SetGadgetItemData
SetGadgetItemImage
SetGadgetItemState
SetGadgetItemText
SetGadgetState
SetGadgetText
ShortcutGadget
SpinGadget
SplitterGadget
StringGadget
TextGadget
TrackBarGadget
TreeGadget
UnbindGadgetEvent
UseGadgetList
WebGadget
WebGadgetPath (deprecated)
Example
Gadget.pb
GadgetAdvanced.pb
BindEvent.pb
BindGadgetEvent.pb
CanvasGadget.pb
GadgetSplitter.pb
GadgetSplitterAdvanced.pb
Image.pb
MDI_ImageViewer.pb
Menu.pb
OpenGLGadget.pb
PopupMenu.pb
StatusBar.pb
SysTray.pb
ToolBar.pb
WebBrowser.pb
Supported OS
All