SG_GetGadgetAttribute

Syntax:

Result=SG_GetGadgetAttribute(SG_GadgetID_L.l)

Parameters:

SG_GadgetID_L

=

The number of the gadget


Return Values:

Result

=

the flags set for the specified gadget


Description:

Gets the 'Attribute' value of the specified #Gadget. This function is available for all gadgets which support attributes. See the individual gadget for the supported attributes.


Example:

 Flag = SG_GetGadgetFlag(#Text_0)
 if Flag & #PB_Text_Center
   debug "text centered"
 Endif

Remarks:



Supported OS:   Windows