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:

cSigCjShortcutBar_Scroll_Button, 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 (52):

ModuleContaining SymbolLine
Calendar_Categories.sloOk_bn60
Calendar_Categories.sloCancel_bn71
Calendar_Categories.sloSearch_bn82
Calendar_Categories.vwobtnSave188
Calendar_Categories.vwobtnClear198
Calendar_Categories.vwobtnDelete209
Calendar_Categories.vwobtnClose220
cSigCJShortcutBar.pkgcSigCjShortcutBar_Scroll_Button93
CSV_Export.dgoOK_bn91
CSV_Export.dgoCancel_bn111
Customer.sloOK_bn43
Customer.sloCancel_bn54
Customer.sloSearch_bn65
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
oPropertyGrid_Container.pkgoApply_btn262
Orderhea.sloOK_bn59
Orderhea.sloCancel_bn70
Orderhea.sloSearch_bn81
Salesp.sloOK_bn42
Salesp.sloCancel_bn54
Salesp.sloSearch_bn65
SigCJLabelControlDemo.vwoButton178
SigCJPopupControlDemo.vwoShowMessageBar_Bn14
SigCJPopupControlDemo.vwoPopupControl1_bn24
SigCJPopupControlDemo.vwoPopupControl2_bn46
SigCJPushButtonDemo.vwoButton164
SigCJReportControlDemo - Text.vwoButton1206
SigCJReportControlDemo - TreeView.vwoButton1335
SigCJTaskDialogDemo.vwoStandardYesNo_btn21
SigCJTaskDialogDemo.vwoStandardYesNoCancel_btn34
SigCJTaskDialogDemo.vwoStandardInfo_btn47
SigCJTaskDialogDemo.vwoStandardWarning_btn58
SigCJTaskDialogDemo.vwoStandardStop_btn69
SigCJTaskDialogDemo.vwoInfoDialog_btn87
SigCJTaskDialogDemo.vwoProgramUpdateDialog_Btn119
SigCJTaskDialogDemo.vwoErrorDialog_Btn152
SigCJTaskDialogDemo.vwoProgressDialog_btn174
SigCJTaskDialogDemo.vwoDialogWithRadioOptions_btn200
Statpnl.pkgoStopButton102
Vendor.sloOK_bn39
Vendor.sloCancel_bn50
Vendor.sloSearch_bn61