GadgetType()

Syntax

Result = GadgetType(#Gadget)
Description
Returns the type of gadget that is represented by the specified gadget number. It can be useful to write generic functions that work with more than one type of gadget.

Parameters

#Gadget The gadget to use.

Return value

Returns one of the following values:
  #PB_GadgetType_Button        : ButtonGadget()
  #PB_GadgetType_ButtonImage   : ButtonImageGadget()
  #PB_GadgetType_Calendar      : CalendarGadget()
  #PB_GadgetType_Canvas        : CanvasGadget()
  #PB_GadgetType_CheckBox      : CheckBoxGadget()
  #PB_GadgetType_ComboBox      : ComboBoxGadget()
  #PB_GadgetType_Container     : ContainerGadget()
  #PB_GadgetType_Date          : DateGadget()
  #PB_GadgetType_Editor        : EditorGadget()
  #PB_GadgetType_ExplorerCombo : ExplorerComboGadget()
  #PB_GadgetType_ExplorerList  : ExplorerListGadget()
  #PB_GadgetType_ExplorerTree  : ExplorerTreeGadget()
  #PB_GadgetType_Frame         : FrameGadget()
  #PB_GadgetType_HyperLink     : HyperLinkGadget()
  #PB_GadgetType_Image         : ImageGadget()
  #PB_GadgetType_IPAddress     : IPAddressGadget()
  #PB_GadgetType_ListIcon      : ListIconGadget()
  #PB_GadgetType_ListView      : ListViewGadget()
  #PB_GadgetType_MDI           : MDIGadget()
  #PB_GadgetType_Option        : OptionGadget()
  #PB_GadgetType_Panel         : PanelGadget()
  #PB_GadgetType_ProgressBar   : ProgressBarGadget()
  #PB_GadgetType_Scintilla     : ScintillaGadget()
  #PB_GadgetType_ScrollArea    : ScrollAreaGadget()
  #PB_GadgetType_ScrollBar     : ScrollBarGadget()
  #PB_GadgetType_Shortcut      : ShortcutGadget()
  #PB_GadgetType_Spin          : SpinGadget()
  #PB_GadgetType_Splitter      : SplitterGadget()
  #PB_GadgetType_String        : StringGadget()
  #PB_GadgetType_Text          : TextGadget()
  #PB_GadgetType_TrackBar      : TrackBarGadget()
  #PB_GadgetType_Tree          : TreeGadget()
  #PB_GadgetType_Web           : WebGadget()
  #PB_GadgetType_Unknown       : The type is unknown. Most likely it is not a PB gadget at all.

Supported OS

All

<- GadgetToolTip() - Gadget Index - GadgetWidth() ->