SophiaFramework UNIVERSE 5.3 |
BREW 2.0 | BREW 2.1 | BREW 3.1 | BREW 4.0 |
---|---|---|---|
O | O | O | O |
Public Functions | |
---|---|
UInt32 |
GetProperties( Void )
Return the control-specific properties or flags.
|
Void |
GetRect(
SFXRectanglePtr rect
)
Get the rectangle of the control.
|
SFXRectangle |
GetRect( Void )
Get the rectangle of the control.
|
Bool |
HandleEvent(
AEEEvent event
, UInt16 wParam
, UInt32 dwParam
)
Pass events to a control. The BREW controls process
various events to allow a device user to enter a text, time, or date
value or choose an item from a menu. Refer to the descriptions of
each control for the events it handles. Your applet must pass a
control all of the events, unless the control is part of a dialog.
Below is an example of an application passing all of the events to
the controls of the application.
|
Bool |
HandleEvent(
SFXEventConstRef event
)
Pass events to a control. The BREW controls process
various events to allow a device user to enter a text, time, or date
value or choose an item from a menu. Refer to the descriptions of
each control for the events it handles. Your applet must pass a
control all of the events, unless the control is part of a dialog.
Below is an example of an application passing all of the events to
the controls of the application.
|
Bool |
IsActive( Void )
Return the active or focus state of the control.
|
Bool |
Redraw( Void )
Instruct the control to redraw its contents.
|
Void |
Reset( Void )
Instruct the control to reset (free/delete) its contents and to immediately leave active/focus mode.
|
Void |
SetActive(
Bool active = true
)
Instruct the control to enter/leave focus or selected mode.
|
Void |
SetProperties(
UInt32 properties
)
Set control-specific properties or flags.
|
Void |
SetRect(
SFXRectangleConstRef rect
)
Set the active screen coordinates of the control.
This may result in the control redrawing its contents.
|
Protected Functions | |
---|---|
static SFBBaseSmp |
FactoryByCreate(
AEECLSID id
, SFCErrorPtr exception = null
)
(inherits from SFBBase)
Create the instance for the specified ClassID's interface.
|
static SFBBaseSmp |
FactoryByQuery(
SFBQuerySmpConstRef query
, AEECLSID id
, SFCErrorPtr exception = null
)
(inherits from SFBBase)
Create the instance for the specified ClassID's interface using the SFBQuery instance.
|
[ public ] UInt32 GetProperties(Void);
[ public ] Void GetRect( SFXRectanglePtr rect // rectangle to be filled with the coordinates of the control );
[ public ] SFXRectangle GetRect(Void);
[ public ] Bool HandleEvent( AEEEvent event // event code UInt16 wParam // 16-bit event data UInt32 dwParam // 32-bit event data );
[ public ] Bool HandleEvent( SFXEventConstRef event // event code );
[ public ] Bool IsActive(Void);
[ public ] Bool Redraw(Void);
[ public ] Void Reset(Void);
Instruct the control to reset (free/delete) its contents and to immediately leave active/focus mode. This is useful in freeing all underlying memory in text or menu controls or removing all items in a single call.
[ public ] Void SetActive( Bool active = true // specifies whether to activate (true) or deactivate (false) the control );
[ public ] Void SetRect( SFXRectangleConstRef rect // the bounding rectangle for the control );
Copyright(c) 2002 - 2024 Sophia Cradle Incorporated All Rights Reserved. |