Class: Button

Module location: Windows.pkg line 5052 (view source)

Class: Button 1. Set Default Size to 14 50 // (the win95 standard) 2. Standard Object 3. Label Support 4. Shadow_state support

Class Hierarchy:

DFBasePushButtonButton

Mixins:

Bitmap_Support_Mixin, Label_Mixin, Single_Item_Navigate_Mixin, Standard_Object_Mixin, ToolTip_Support_Mixin,

Direct Known Subclasses:

PointerButton,

Class Definition

Properties

IntegerFlatState
IntegerMultiLineState
Integerprivate.CurrentButtonState

Functions and Procedures

Construct_Object()
IntegerCurrentButtonState()
IntegerDefault_State()
KeyAction()
KeyAction is the message that should be sent to a button via an on_key in support of an underlined hot-key indicator. For example, setting a button label to "&Close" will create an underlined "C", indicating to a user that Alt+C should also be usable for "close". To support that, simply setup an on_key message: On_Key Key_Alt+Key_C Send KeyAction to (closebutton(self)) this was modified to not send OnClick but to send Message to Aux_value. Normally, this will be the same as onCLick (onClick will be the message and there will be no aux_value).
OnClick()
Page_Object(Integer iState)
PrivateSetCurrentButton()
Inherited from Standard_Object_Mixin
This is called by notify_focus_change (in std obj mixin). With buttons we must make sure that they are always highlighted when the focus and not highlighted when the focus is list
Remove_Object()
RequestAddToolTip()
Called by Page_Object. Handles tooltip creation. We use a dedicated method to perform AddToolTip because it is often the case that Page_Object is implemented in a mixin class.
RequestDeleteToolTip()
Called by Page_Object. Handles tooltip removal.
Set(Integer bState)
Inherited from ToolTip_Support_Mixin
Set CurrentButtonState to FALSE/TRUE will cause the button to display the "thick" border seen on "default" buttons. By Default, buttons will now set this property to true when ever they take the focus, and false when they lose the focus. Logic exists in "panel" objects to set a default button which will be highlighted when needed. Note that all highlighting is handled by calling this one message. Get/Set CurrentButtonState is private, system maintained and dynamic. Do not set this as part of an object's attributes.
Set(Integer bState)
Inherited from ToolTip_Support_Mixin
Default_State is the public interface for setting the Default Action Button at the button itself. The message CurrentButtonState is implementation of part of the mechanism and should not be used directly.
Shadow_Display()
Inherited from Shadow_Mixin
if a button is shadowed it should not be highlighted

References (51):

ModuleContaining SymbolLine
AddressLabelsCR.rvoOkButton130
AddressLabelsCR.rvoCancelButton151
CheckForCrystal.dgoCloseBtn263
Customer.sloOK_bn42
Customer.sloCancel_bn53
Customer.sloSearch_bn64
CustomerListBR.rvoOkButton74
CustomerListBR.rvoCancelButton86
CustomerListCR.rvoRunButton434
CustomerListCR.rvoCancelButton455
CustomerListWP.rvoBtnPrint84
CustomerListWP.rvoBtnCancel94
CustomerListWP.rvoBtnPrinterSetup104
Dfabout.pkgoCloseButton487
Dfabout.pkgoOKButton556
Dfabout.pkgoSysInfoButton562
Dfdbmdpn.pkgPointerButton18
Dfrepky.pkgYesBn39
Dfrepky.pkgNoBn51
Dfrepky.pkgPreviewBn61
Dfsellst.pkgPB234
Invt.sloOK_bn58
Invt.sloCancel_bn69
Invt.sloSearch_bn80
ItemsPerOrderWP.rvoBtnPrint69
ItemsPerOrderWP.rvoBtnCancel81
Order.vwoPrintBtn294
Orderhea.sloOK_bn66
Orderhea.sloCancel_bn77
Orderhea.sloSearch_bn88
OrdersByCustomerCR.rvoRunButton39
OrdersByCustomerCR.rvoCancelButton60
OrdersByCustomerWP.rvoSetupButton102
OrdersByCustomerWP.rvoBtnPrint113
OrdersByCustomerWP.rvoBtnCancel128
OrdersCR.rvoPrintButton56
OrdersCR.rvoCancelButton77
OrdersWP.rvoBtnPrint69
OrdersWP.rvoBtnCancel81
ReportInformationCR.rvoReadReportButton78
ReportInformationCR.rvoRunButton157
ReportInformationCR.rvoCancelButton169
ReportPreviewCR.rvoOkButton95
ReportPreviewCR.rvoCancelButton128
Salesp.sloOK_bn41
Salesp.sloCancel_bn53
Salesp.sloSearch_bn64
Statpnl.pkgoStopButton102
Vendor.sloOK_bn39
Vendor.sloCancel_bn50
Vendor.sloSearch_bn61