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

ButtonMixins:
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
Integer
FlatState
Integer
MultiLineState
Integer
private.CurrentButtonState
Functions and Procedures

Construct_Object()
Integer
CurrentButtonState()
Integer
Default_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()
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)
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)
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()
if a button is shadowed it should not be highlighted
References (52):