PrevNextUpHome SophiaFramework UNIVERSE 5.3
SFYMultipleEditWidget
Responder which represents a widget to display a multiple editable text.
#include <SFYMultipleEditWidget.h.hpp>
class SFYMultipleEditWidget : public SFYWidget;
SFMTYPEDEFCLASS(SFYMultipleEditWidget)

Inheritance diagram

 Inheritance diagram of SFYMultipleEditWidgetClass

Collaboration diagram

 Collaboration diagram of SFYMultipleEditWidgetClass

Description

How to use

SFYMultipleEditWidget is a responder with the function of displaying a multiple editable text.

In general, this class is used as a child responder contained internally by the parent responder such as SFZMultipleEditLabelControl or SFZMultipleEditBoxControl, which will edit a multiple text.

In these responders, all processings such as setting a multiple text, its color, its font, its alignment, or its scroll are delegated to this class.

[Note] Internal processing of the SFYMultipleEditWidget class

The text input and its drawing of the SFYMultipleEditWidget class will be delegated to the SFXEditor class and the SFYMultipleTextWidget class which the SFYSingleEditWidget class contains internally, respectively.

[Note] The state of this responder when used

When this class is used, its state is set to "visible"+"active"+"disable"+"unfocus".

In general, this class is used as a responder which will not handle the key event.

[Caution] Default value of the transparency attribute

Since the default value of the transparency attribute of this class is set to "true", the background will be never drawn in the color set with the SFYWidget::SetBackgroundColor function unless the transparency attribute is set to "false" using the SFYResponder::SetPropertyTransparent function.

[Caution] About the virtual region

In this class, it is recommended to equalize the virtual region with the real region for the intuitive text alignment or scroll.

For instance, when

[Width of virtual region] > [Width of real region]

stands up, the left edge, the right edge, or both the edges of the row which is longer than [width of virtual region] cannot be displayed on the device screen since the text is turned down by this width. And tt cannot be displayed by scrolling left or right.

Suppose the following relation stands up.

[Height of virtual region] ≧ [Height of multiple text] > [Height of real region]

In this case, though all the text is not displayed, the multiple text will not scroll even if the UP key or the DOWN key is pressed.

[Caution] Calling GetSuitableBound() without specifying its argument

When calling the SFYResponder::GetSuitableBound function of this responder without specifying its argument, it is necessary to set the real region (local region*) using the SFYResponder::SetRealBound function in advance. The width of this real region will be used as a hint value for calculating the suitable region size of this responder. In almost all cases, the value more than the width of currently used font is set.

* Unless the virtual region is set, the real region is the same with the local region.

Reference: Getting the Suitable Size of Responder for Displaying a Multiple Text

Reference

SFZMultipleEditLabelControl | SFZMultipleEditBoxControl | SFYMultipleTextWidget | SFXEditor | Virtual Region | Real Region | Local Region | Getting the Suitable Size of Responder for Displaying a Multiple Text

Member

Constructor/Destructor
SFYMultipleEditWidget( Void )
Constructor of the SFYMultipleEditWidget class.
~SFYMultipleEditWidget( Void )
Destructor of the SFYMultipleEditWidget class.
Public Functions
SFCError Edit( Void )
Transfer to the naitive text input.
AEEFont GetFont( Void )
Get the font.
SFXSizeConstRef GetFontSize( Void )
Get the font size.
HorizontalEnum GetHorizontalAlign( Void )
Get the horizontal alignment.
AEETextInputMode GetInputMode( Void )
Get the value of text input mode.
UInt16 GetMaximumLength( Void )
Get the maximum number of characters for text input.
Bool GetPasswordMode( Void )
Get the value of password mode.
AEECLSID GetSFBMenuCtlClassID( Void )
[DEPRECATED] Get the class ID of SFBMenuCtl.
AEECLSID GetSFBTextCtlClassID( Void )
[DEPRECATED] Get the class ID of SFBTextCtl.
SInt16 GetScrollStep( Void )
Get the scroll-step. [pixels]
SFXWideStringConstRef GetText( Void )
Get the text.
SFXRGBColorConstRef GetTextColor( Void )
Get the color of text.
SFXSizeConstRef GetTextSize( Void )
Get the size of the text.
VerticalEnum GetVerticalAlign( Void )
Get the vertical alignment.
static
SFYMultipleEditWidgetSmp
NewInstance( SFCErrorPtr exception = null )
Create a new instance of this responder class.
Bool PageDown( Void )
Scroll down the multiple text by one page.
Bool PageUp( Void )
Scroll up the multiple text by one page.
Bool ScrollDown( Void )
Scroll down the multiple text by the scroll-step.
Bool ScrollUp( Void )
Scroll up the multiple text by the scroll-step.
Void SetFont( AEEFont param )
Set the font to the specified value .
Void SetHorizontalAlign( HorizontalEnum param )
Set the horizontal alignment to the specified value.
Void SetInputMode( AEETextInputMode param )
Set the text input mode to the specified value.
SFCError SetMaximumLength( UInt16 param )
Set the maximum number of characters for text input to the specified value.
SFCError SetPasswordMode( Bool param )
Set the password mode to the specified value.
Void SetSFBMenuCtlClassID( AEECLSID param )
[DEPRECATED] Set the class ID of SFBMenuCtl to the specified value.
Void SetSFBTextCtlClassID( AEECLSID param )
[DEPRECATED] Set the class ID of SFBTextCtl to the specified value.
Void SetScrollStep( SInt16 param )
Set the scroll-step to the specified value. [pixels]
SFCError SetText( SFXPathConstRef path , UInt16 id )
Set the text to the specified value.
SFCError SetText( SFXWideStringConstRef param )
Set the text to the specified value.
Void SetTextColor( SFXRGBColorConstRef param )
Set the color of text to the specified value.
Void SetVerticalAlign( VerticalEnum param )
Set the vertical alignment to the specified value.
Bool SnapAlign( Void )
Put back the scroll position of the multiple text to the initial state.
Bool SnapDown( Void )
Scroll down the multiple text to the bottom.
Bool SnapUp( Void )
Scroll down the multiple text to the top.
Void ClearHandler( Void ) (inherits from SFYResponder)
Unregister all handlers from this responder.
Void ClearTracer( Void ) (inherits from SFYResponder)
Unregister all dispatching rules from the tracer of this responder.
SFCError Distribute( SFXEventConstRef event , BoolPtr result = null ) (inherits from SFYResponder)
Distribute the specified event.
SFXRGBColorConstRef GetBackgroundColor( Void ) (inherits from SFYWidget)
Get the background color.
SFYResponderSmp GetChildBack( Void ) (inherits from SFYResponder)
Get the backmost child responder of this responder, which matches the specified search condition.
SFYResponderSmp GetChildBack( Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Get the backmost child responder of this responder, which matches the specified search condition.
SFYResponderSmp GetChildBack( UInt32 id ) (inherits from SFYResponder)
Get the backmost child responder of this responder, which matches the specified search condition.
SFYResponderSmp GetChildBack( UInt32 id , Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Get the backmost child responder of this responder, which matches the specified search condition.
SFYResponderSmp GetChildBackward( SInt32 index ) (inherits from SFYResponder)
Get the child responder of this responder at the specified position from the back side, which matches the specified search condition.
SFYResponderSmp GetChildBackward( SInt32 index , Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Get the child responder of this responder at the specified position from the back side, which matches the specified search condition.
SFYResponderSmp GetChildBackward( SInt32 index , UInt32 id ) (inherits from SFYResponder)
Get the child responder of this responder at the specified position from the back side, which matches the specified search condition.
SFYResponderSmp GetChildBackward( SInt32 index , UInt32 id , Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Get the child responder of this responder at the specified position from the back side, which matches the specified search condition.
SInt32 GetChildCount( Void ) (inherits from SFYResponder)
Get the number of child responders of this responder, which match the specified search condition.
SInt32 GetChildCount( Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Get the number of child responders of this responder, which match the specified search condition.
SInt32 GetChildCount( UInt32 id ) (inherits from SFYResponder)
Get the number of child responders of this responder, which match the specified search condition.
SInt32 GetChildCount( UInt32 id , Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Get the number of child responders of this responder, which match the specified search condition.
SFYResponderSmp GetChildForward( SInt32 index ) (inherits from SFYResponder)
Get the child responder of this responder at the specified position from the front side, which matches the specified search condition.
SFYResponderSmp GetChildForward( SInt32 index , Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Get the child responder of this responder at the specified position from the front side, which matches the specified search condition.
SFYResponderSmp GetChildForward( SInt32 index , UInt32 id ) (inherits from SFYResponder)
Get the child responder of this responder at the specified position from the front side, which matches the specified search condition.
SFYResponderSmp GetChildForward( SInt32 index , UInt32 id , Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Get the child responder of this responder at the specified position from the front side, which matches the specified search condition.
SFYResponderSmp GetChildFront( Void ) (inherits from SFYResponder)
Get the foremost child responder of this responder, which matches the specified search condition.
SFYResponderSmp GetChildFront( Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Get the foremost child responder of this responder, which matches the specified search condition.
SFYResponderSmp GetChildFront( UInt32 id ) (inherits from SFYResponder)
Get the foremost child responder of this responder, which matches the specified search condition.
SFYResponderSmp GetChildFront( UInt32 id , Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Get the foremost child responder of this responder, which matches the specified search condition.
SFYDistributerPtr GetDistributer( Void ) (inherits from SFYResponder)
Get the distributer bound with this responder.
SFYResponderSmp GetFrame( Void ) (inherits from SFYResponder)
Get the frame which has been attached to this responder.
SFXRectangle GetGlobalBound( Void ) (inherits from SFYResponder)
Get the globle region of this responder.
UInt32 GetID( Void ) (inherits from SFYResponder)
Get the ID of this responder instance.
SFXRectangle GetLocalBound( Void ) (inherits from SFYResponder)
Get the local region of this responder.
SInt32 GetNthBackward( Void ) (inherits from SFYResponder)
Get the position counted from the back side of this responder among a group of sibling responders, which match the specified search condition.
SInt32 GetNthBackward( Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Get the position counted from the back side of this responder among a group of sibling responders, which match the specified search condition.
SInt32 GetNthBackward( UInt32 id ) (inherits from SFYResponder)
Get the position counted from the back side of this responder among a group of sibling responders, which match the specified search condition.
SInt32 GetNthBackward( UInt32 id , Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Get the position counted from the back side of this responder among a group of sibling responders, which match the specified search condition.
SInt32 GetNthForward( Void ) (inherits from SFYResponder)
Get the position counted from the front side of this responder among a group of sibling responders, which match the specified search condition.
SInt32 GetNthForward( Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Get the position counted from the front side of this responder among a group of sibling responders, which match the specified search condition.
SInt32 GetNthForward( UInt32 id ) (inherits from SFYResponder)
Get the position counted from the front side of this responder among a group of sibling responders, which match the specified search condition.
SInt32 GetNthForward( UInt32 id , Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Get the position counted from the front side of this responder among a group of sibling responders, which match the specified search condition.
SFYResponderSmp GetParent( Void ) (inherits from SFYResponder)
Get the parent responder of this responder.
Bool GetPropertyTransparent( Void ) (inherits from SFYResponder)
Get the transparency attribute of this responder.
SFXRectangleConstRef GetRealBound( Void ) (inherits from SFYResponder)
Get the real region of this responder.
VoidPtr GetReference( Void ) (inherits from SFYResponder)
Get the reference of this responder.
SFYRendererPtr GetRenderer( Void ) (inherits from SFYResponder)
Get the renderer bound with this responder.
SFYResponderSmp GetRoot( Void ) (inherits from SFYResponder)
Get the root responder.
Bool GetStateActive( Bool inherit = false ) (inherits from SFYResponder)
Get the active state of this responder.
Bool GetStateEnable( Bool inherit = false ) (inherits from SFYResponder)
Get the enable state of this responder.
Bool GetStateFocus( Bool inherit = false ) (inherits from SFYResponder)
Get the focus state of this responder.
Bool GetStateValid( Bool inherit = false ) (inherits from SFYResponder)
Get the valid state of this responder.
Bool GetStateVisible( Bool inherit = false ) (inherits from SFYResponder)
Get the visible state of this responder.
SFXRectangle GetSuitableBound( Void ) (inherits from SFYResponder)
Get the suitable region of this responder.
SFXRectangle GetSuitableBound( SFXRectangleConstRef rectangle ) (inherits from SFYResponder)
Get the suitable region of this responder.
SFXRectangle GetSuitableBound( SFXRectangleConstRef param , HorizontalEnum horizontal , VerticalEnum vertical ) (inherits from SFYResponder)
Get the suitable region of this responder.
SFXMargin GetSuitableMargin( Void ) (inherits from SFYResponder)
Get the suitable frame margin region of this responder.
SFCType GetType( Void ) (inherits from SFYResponder)
Get the type of this responder class.
SFXRectangleConstRef GetVirtualBound( Void ) (inherits from SFYResponder)
Get the virtual region of this responder.
Bool HasFrame( Void ) (inherits from SFYResponder)
Check whether or not this responder is a content-responder.
Void Initialize( Void ) (inherits from SFYResponder)
Initialize this responder.
Bool IsBack( Void ) (inherits from SFYResponder)
Check whether or not this responder is the backmost responder among a group of the sibling responders which match the specified search condition.
Bool IsBack( Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Check whether or not this responder is the backmost responder among a group of the sibling responders which match the specified search condition.
Bool IsBack( UInt32 id ) (inherits from SFYResponder)
Check whether or not this responder is the backmost responder among a group of the sibling responders which match the specified search condition.
Bool IsBack( UInt32 id , Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Check whether or not this responder is the backmost responder among a group of the sibling responders which match the specified search condition.
Bool IsFrame( Void ) (inherits from SFYResponder)
Check whether or not this responder is an attachment-frame.
Bool IsFront( Void ) (inherits from SFYResponder)
Check whether or not this responder is the foremost responder among a group of the sibling responders which match the specified search condition.
Bool IsFront( Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Check whether or not this responder is the foremost responder among a group of the sibling responders which match the specified search condition.
Bool IsFront( UInt32 id ) (inherits from SFYResponder)
Check whether or not this responder is the foremost responder among a group of the sibling responders which match the specified search condition.
Bool IsFront( UInt32 id , Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Check whether or not this responder is the foremost responder among a group of the sibling responders which match the specified search condition.
Bool IsNthBackward( SInt32 index ) (inherits from SFYResponder)
Check whether or not this responder is at the specified position from the back side among a group of the sibling responders which match the specified search condition.
Bool IsNthBackward( SInt32 index , Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Check whether or not this responder is at the specified position from the back side among a group of the sibling responders which match the specified search condition.
Bool IsNthBackward( SInt32 index , UInt32 id ) (inherits from SFYResponder)
Check whether or not this responder is at the specified position from the back side among a group of the sibling responders which match the specified search condition.
Bool IsNthBackward( SInt32 index , UInt32 id , Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Check whether or not this responder is at the specified position from the back side among a group of the sibling responders which match the specified search condition.
Bool IsNthForward( SInt32 index ) (inherits from SFYResponder)
Check whether or not this responder is at the specified position from the front side among a group of the sibling responders which match the specified search condition.
Bool IsNthForward( SInt32 index , Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Check whether or not this responder is at the specified position from the front side among a group of the sibling responders which match the specified search condition.
Bool IsNthForward( SInt32 index , UInt32 id ) (inherits from SFYResponder)
Check whether or not this responder is at the specified position from the front side among a group of the sibling responders which match the specified search condition.
Bool IsNthForward( SInt32 index , UInt32 id , Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Check whether or not this responder is at the specified position from the front side among a group of the sibling responders which match the specified search condition.
Bool IsRoot( Void ) (inherits from SFYResponder)
Check whether or not this responder is the root responder.
SFCError Recover( Void ) (inherits from SFYResponder)
Recover the intersection region between this responder and the responder space by using the saved bitmap to restore the device bitmap.
SFCError RegisterHandler( SFXEventRangeConstRef range , SFYHandler::RuleRecConstRef rule ) (inherits from SFYResponder)
Register specified handlers into this responder.
SFCError RegisterHandler( SFXEventRangeConstRef range , SFYHandler::HandlerSPP spp , VoidPtr reference ) (inherits from SFYResponder)
Register specified handlers into this responder.
SFCError RegisterHandler( SFXEventRangeConstPtr range , SFYHandler::RuleRecConstPtr rule , SInt32 length ) (inherits from SFYResponder)
Register specified handlers into this responder.
SFCError RegisterHandler( SFXEventRangeConstPtr range , SFYHandler::HandlerSPPConstPtr spp , VoidPtrConstPtr reference , SInt32 length ) (inherits from SFYResponder)
Register specified handlers into this responder.
SFCError RegisterTracer( SFXEventRangeConstRef range , SFYTracer::RuleRecConstRef rule ) (inherits from SFYResponder)
Register specified dispatching rules into the tracer of this responder.
SFCError RegisterTracer( SFXEventRangeConstRef range , SFYTracer::OrderEnum order , SFYTracer::StateEnum state , Bool overload ) (inherits from SFYResponder)
Register specified dispatching rules into the tracer of this responder.
SFCError RegisterTracer( SFXEventRangeConstPtr range , SFYTracer::RuleRecConstPtr rule , SInt32 length ) (inherits from SFYResponder)
Register specified dispatching rules into the tracer of this responder.
SFCError RegisterTracer( SFXEventRangeConstPtr range , SFYTracer::OrderEnumConstPtr order , SFYTracer::StateEnumConstPtr state , BoolConstPtr overload , SInt32 length ) (inherits from SFYResponder)
Register specified dispatching rules into the tracer of this responder.
SFCError Render( Bool force = false ) (inherits from SFYResponder)
Boot up the renderer for redrawing this responder and its descendant responders.
Void SetBackgroundColor( SFXRGBColorConstRef param ) (inherits from SFYWidget)
Set the background color to the specified value.
Void SetDistributer( SFYDistributerPtr param ) (inherits from SFYResponder)
Bind this responder with the specified distributer.
SFCError SetFrame( SFYResponderSmpConstRef param ) (inherits from SFYResponder)
Attach the specified frame to this frame.
Void SetID( UInt32 param ) (inherits from SFYResponder)
Set the ID value of this responder to the specified value.
SFCError SetParent( SFYResponderSmpConstRef param ) (inherits from SFYResponder)
Set the parent responder of this responder to the specified responder.
Void SetProperty( Bool transparent ) (inherits from SFYResponder)
Set the property of this responder to the specified value.
Void SetPropertyTransparent( Bool param ) (inherits from SFYResponder)
Set the transparency attribute of this responder to the specified value.
Void SetRealBound( SFXRectangleConstRef param ) (inherits from SFYResponder)
Set the real region of this responder to the specified region.
Void SetReference( VoidPtr param ) (inherits from SFYResponder)
Set the reference value of this responder to the specified value.
Void SetRenderer( SFYRendererPtr param ) (inherits from SFYResponder)
Bind this responder with the specified renderer.
Void SetState( Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Set all states of this responder to specified values together.
Void SetStateActive( Bool param ) (inherits from SFYResponder)
Set the active state of this responder to the specified value.
Void SetStateEnable( Bool param ) (inherits from SFYResponder)
Set the enable state of this responder to the specified value.
Void SetStateFocus( Bool param ) (inherits from SFYResponder)
Set the focus state of this responder to the specified value.
Void SetStateVisible( Bool param ) (inherits from SFYResponder)
Set the visible state of this responder to the specified value.
Void SetVirtualBound( SFXRectangleConstRef param ) (inherits from SFYResponder)
Set the virtual region of this responder to the specified value.
SFCError Snapshot( SFBBitmapSmpConstRef bitmap ) (inherits from SFYResponder)
Get a snapshot image of the intersection region between this responder and the responder space by using the saved bitmap.
Void Terminate( Void ) (inherits from SFYResponder)
Terminate this responder.
Void ToBack( Void ) (inherits from SFYResponder)
Move this responder to the backmost position among a group of the sibling responders which match the specified search condition.
Void ToBack( Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Move this responder to the backmost position among a group of the sibling responders which match the specified search condition.
Void ToBack( UInt32 id ) (inherits from SFYResponder)
Move this responder to the backmost position among a group of the sibling responders which match the specified search condition.
Void ToBack( UInt32 id , Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Move this responder to the backmost position among a group of the sibling responders which match the specified search condition.
Void ToFront( Void ) (inherits from SFYResponder)
Move this responder to the foremost position among a group of the sibling responders which match the specified search condition.
Void ToFront( Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Move this responder to the foremost position among a group of the sibling responders which match the specified search condition.
Void ToFront( UInt32 id ) (inherits from SFYResponder)
Move this responder to the foremost position among a group of the sibling responders which match the specified search condition.
Void ToFront( UInt32 id , Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Move this responder to the foremost position among a group of the sibling responders which match the specified search condition.
Void ToNthBackward( SInt32 index ) (inherits from SFYResponder)
Move this responder to the specified position from the back side among a group of the sibling responders which match the specified search condition.
Void ToNthBackward( SInt32 index , Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Move this responder to the specified position from the back side among a group of the sibling responders which match the specified search condition.
Void ToNthBackward( SInt32 index , UInt32 id ) (inherits from SFYResponder)
Move this responder to the specified position from the back side among a group of the sibling responders which match the specified search condition.
Void ToNthBackward( SInt32 index , UInt32 id , Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Move this responder to the specified position from the back side among a group of the sibling responders which match the specified search condition.
Void ToNthForward( SInt32 index ) (inherits from SFYResponder)
Move this responder to the specified position from the front side among a group of the sibling responders which match the specified search condition.
Void ToNthForward( SInt32 index , Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Move this responder to the specified position from the front side among a group of the sibling responders which match the specified search condition.
Void ToNthForward( SInt32 index , UInt32 id ) (inherits from SFYResponder)
Move this responder to the specified position from the front side among a group of the sibling responders which match the specified search condition.
Void ToNthForward( SInt32 index , UInt32 id , Bool visible , Bool active , Bool enable , Bool focus ) (inherits from SFYResponder)
Move this responder to the specified position from the front side among a group of the sibling responders which match the specified search condition.
Void UnregisterHandler( SFXEventRangeConstRef range , SFYHandler::RuleRecConstRef rule ) (inherits from SFYResponder)
Unregister the handler from this responder which matches the specified condition.
Void UnregisterHandler( SFXEventRangeConstRef range , SFYHandler::HandlerSPP spp , VoidPtr reference ) (inherits from SFYResponder)
Unregister the handler from this responder which matches the specified condition.
Void UnregisterHandler( SFXEventRangeConstPtr range , SFYHandler::RuleRecConstPtr rule , SInt32 length ) (inherits from SFYResponder)
Unregister the handler from this responder which matches the specified condition.
Void UnregisterHandler( SFXEventRangeConstPtr range , SFYHandler::HandlerSPPConstPtr spp , VoidPtrConstPtr reference , SInt32 length ) (inherits from SFYResponder)
Unregister the handler from this responder which matches the specified condition.
Void UnregisterTracer( SFXEventRangeConstRef range ) (inherits from SFYResponder)
Unregister the dispatching rule from the tracer of this responder which matches the specified condition.
Void UnregisterTracer( SFXEventRangeConstPtr range , SInt32 length ) (inherits from SFYResponder)
Unregister the dispatching rule from the tracer of this responder which matches the specified condition.
T const & static_catch( Void ) (inherits from static_exception)
Get the current exception.
Protected Functions
SFYMultipleTextWidgetSmpConstRef GetWidget( Void )
Get the widget which is contained internally for drawing a multiple text.
Void HandleBoundOptimize( SFXRectanglePtr rectangle )
This function will be called when the (SFEVT_RESPONDER_BOUND, SFP16_BOUND_OPTIMIZE) event is received. [Calculate the suitable rectangle size of this responder within the specified hint rectangle.]
Void HandleBoundReal( Void )
This function will be called when the (SFEVT_RESPONDER_BOUND, SFP16_BOUND_REAL) event is received. [Perform the processing when the real region is changed.]
Void HandleBoundRequest( SFXRectanglePtr rectangle )
This function will be called when the (SFEVT_RESPONDER_BOUND, SFP16_BOUND_REQUEST) event is received. [Calculate the suitable rectangle size of this responder.]
Void HandleBoundVirtual( Void )
This function will be called when the (SFEVT_RESPONDER_BOUND, SFP16_BOUND_VIRTUAL) event is received. [Perform the processing when the virtual region is changed.]
static
SFYResponderSmp
Factory( SFYResponderPtr responder , SFCErrorPtr exception = null ) (inherits from SFYResponder)
This function is used to implement the NewInstance function.
SFYResponderSmp GetThis( Void ) (inherits from SFYResponder)
Get the smart pointer of this responder.
Void HandleBoundGlobal( SFXRectangleConstRef rectangle ) (inherits from SFYWidget)
This function will be called when the global region is changed.
Void HandleRenderRequest( SFXGraphicsPtr graphics ) (inherits from SFYWidget)
This function will be called when the (SFEVT_RESPONDER_RENDER, SFP16_RENDER_REQUEST) event is received. [Draw this responder.]
Void Invalidate( Void ) (inherits from SFYResponder)
Register the specified redraw region of this responder.
Void Invalidate( SFXRectangleConstRef param ) (inherits from SFYResponder)
Register the specified redraw region of this responder.
Void InvokeBackward( SFXEventConstRef event , Bool overload , BoolPtr result = null ) (inherits from SFYResponder)
Call the handlers for the specified event from the end of the handler list registered into this responder.
Void InvokeForward( SFXEventConstRef event , Bool overload , BoolPtr result = null ) (inherits from SFYResponder)
Call the handlers for the specified event from the head of the handler list registered into this responder.
Void SetType( SFCType param ) (inherits from SFYResponder)
Set the Type value of this responder to the specified 4-character value.
Void static_throw( static_exception< T > const & param ) (inherits from static_exception)
Set an exception.
Void static_throw( T const & param ) (inherits from static_exception)
Set an exception.
Bool static_try( Void ) (inherits from static_exception)
Confirm whether or not the exception is retained.
Types
CodeEnum
Constant that represents the SFYMultipleEditWidget class.
DefaultEnum
Constants that represent the default value for various parameters.
HorizontalEnum
Constants that represent the horizontal alignment.
VerticalEnum
Constants that represent the vertical alignment.

SFYMultipleEditWidget::SFYMultipleEditWidget
Constructor of the SFYMultipleEditWidget class.
[ protected, explicit ]
SFYMultipleEditWidget(Void);

Description

This constructor performs the initializations as follows:

  1. Set the type of this responder to "+med".
  2. Set the transparency attribute of this responder to "true".
  3. Set the input mode of the text input control to AEE_TM_CURRENT.
  4. Set the maximum text size supported by the text input control to "SINT16_MAXIMUM - 1".
  5. Set the password mode of the text input control to "false".
  6. Create the SFYMultipleTextWidget instance which is internally contained as a child responder for drawing the text.
  7. Set the state of the SFYMultipleTextWidget instance to "visible" + "active" + "disable" + "unfocus".
  8. Set the text to ""[null string].
  9. Set the color of the text to SFXRGBColor(0x00, 0x00, 0x00, 0x00)[black color]
  10. Set the text font to AEE_FONT_NORMAL.
  11. Set the horizontal alignment of the text to SFYMultipleTextWidget::DEFAULT_HORIZONTAL.
  12. Set the vertical alignment of the text to SFYMultipleTextWidget::DEFAULT_VERTICAL.
  13. Set the scroll-step of the text to SFYMultipleTextWidget::DEFAULT_STEP [pixels].

Reference

SFYResponder::SetType | SFYMultipleEditWidget::CodeEnum | SFYResponder::SetPropertyTransparent | SFYMultipleEditWidget::SetInputMode | SFYMultipleEditWidget::SetMaximumLength | SFYMultipleEditWidget::SetPasswordMode | SFYMultipleEditWidget::GetWidget | SFYResponder::SetParent | SFYResponder::SetState | SFYMultipleEditWidget::SetText | SFYMultipleEditWidget::SetFont | SFYMultipleEditWidget::SetTextColor | SFYMultipleEditWidget::SetHorizontalAlign | SFYMultipleEditWidget::SetVerticalAlign | SFYMultipleEditWidget::SetScrollStep | SFYMultipleTextWidget::NewInstance | SFYMultipleTextWidget::HorizontalEnum | SFYMultipleTextWidget::VerticalEnum | SFYMultipleTextWidget::DefaultEnum | SFYMultipleTextWidget | SFXRGBColor | Type | Attribute | State


SFYMultipleEditWidget::~SFYMultipleEditWidget
Destructor of the SFYMultipleEditWidget class.
[ protected, virtual ]
virtual ~SFYMultipleEditWidget(Void);

Description

This destructor does nothing.


SFYMultipleEditWidget::Edit
Transfer to the naitive text input.
[ public ]
SFCError Edit(Void);

SFYMultipleEditWidget::GetFont
Get the font.
[ public, const ]
AEEFont GetFont(Void);

Description

This function gets the font.

Reference

SFYMultipleEditWidget::SetFont


SFYMultipleEditWidget::GetFontSize
Get the font size.
[ public, const ]
SFXSizeConstRef GetFontSize(Void);

Description

This function gets the size of one character of the current font(the ' ' character is used).

Reference

SFYMultipleEditWidget::SetFont


SFYMultipleEditWidget::GetHorizontalAlign
Get the horizontal alignment.
[ public, const ]
HorizontalEnum GetHorizontalAlign(Void);

Return value

Value of the horizontal alignment.

Reference

SFYMultipleEditWidget::SetHorizontalAlign | SFYMultipleEditWidget::HorizontalEnum


SFYMultipleEditWidget::GetInputMode
Get the value of text input mode.
[ public, const ]
AEETextInputMode GetInputMode(Void);

Return value

Text input mode.

Reference

SFYMultipleEditWidget::SetInputMode


SFYMultipleEditWidget::GetMaximumLength
Get the maximum number of characters for text input.
[ public, const ]
UInt16 GetMaximumLength(Void);

Reference

SFYMultipleEditWidget::SetMaximumLength


SFYMultipleEditWidget::GetPasswordMode
Get the value of password mode.
[ public, const ]
Bool GetPasswordMode(Void);

Return value

  • If password mode is set: true
  • Otherwise: false

Reference

SFYMultipleEditWidget::SetPasswordMode


SFYMultipleEditWidget::GetSFBMenuCtlClassID
[DEPRECATED] Get the class ID of SFBMenuCtl.
[ public, const ]
AEECLSID GetSFBMenuCtlClassID(Void);

Description

[Note] DEPRECATED

This API will be discontinued in SophiaFramework UNIVERSE 6.0.

It is recommended to get the class ID by calling the SFXBaseEditor::GetSFBMenuCtlClassID function of the text input control editor, which is gotten by calling the SFYApplication::GetEditor function.

Reference

SFYMultipleEditWidget::SetSFBMenuCtlClassID | SFBMenuCtl


SFYMultipleEditWidget::GetSFBTextCtlClassID
[DEPRECATED] Get the class ID of SFBTextCtl.
[ public, const ]
AEECLSID GetSFBTextCtlClassID(Void);

Description

[Note] DEPRECATED

This API will be discontinued in SophiaFramework UNIVERSE 6.0.

It is recommended to get the class ID by calling the SFXBaseEditor::GetSFBTextCtlClassID function of the text input control editor, which is gotten by calling the SFYApplication::GetEditor function.

Reference

SFYMultipleEditWidget::SetSFBTextCtlClassID | SFBTextCtl


SFYMultipleEditWidget::GetScrollStep
Get the scroll-step. [pixels]
[ public, const ]
SInt16 GetScrollStep(Void);

Return value

Scroll-step. [pixels]

Reference

SFYMultipleEditWidget::SetScrollStep


SFYMultipleEditWidget::GetText
Get the text.
[ public, const ]
SFXWideStringConstRef GetText(Void);

Reference

SFYMultipleEditWidget::SetText


SFYMultipleEditWidget::GetTextColor
Get the color of text.
[ public, const ]
SFXRGBColorConstRef GetTextColor(Void);

Reference

SFYMultipleEditWidget::SetTextColor | SFXRGBColor


SFYMultipleEditWidget::GetTextSize
Get the size of the text.
[ public, const ]
SFXSizeConstRef GetTextSize(Void);

Description

This function gets the size of the text when it will be drawn with the current font.

Reference

SFYMultipleEditWidget::SetFont


SFYMultipleEditWidget::GetVerticalAlign
Get the vertical alignment.
[ public, const ]
VerticalEnum GetVerticalAlign(Void);

Return value

Value of the vertical alignment.

Reference

SFYMultipleEditWidget::SetVerticalAlign | SFYMultipleEditWidget::VerticalEnum


SFYMultipleEditWidget::GetWidget
Get the widget which is contained internally for drawing a multiple text.
[ protected, const ]
SFYMultipleTextWidgetSmpConstRef GetWidget(Void);

Description

This function gets the instance of the SFYMultipleTextWidget class, which is contained as a child responder internally for drawing a multiple text.

The drawing of the multiple text is delegated to the SFYMultipleTextWidget class.

Reference

SFYMultipleTextWidget


SFYMultipleEditWidget::HandleBoundOptimize
This function will be called when the (SFEVT_RESPONDER_BOUND, SFP16_BOUND_OPTIMIZE) event is received. [Calculate the suitable rectangle size of this responder within the specified hint rectangle.]
[ protected, virtual, const ]
Void HandleBoundOptimize(
    SFXRectanglePtr rectangle   // hint region and calculated region
);

Description

This function will be called when the region event [SFXEvent(SFEVT_RESPONDER_BOUND, SFP16_BOUND_OPTIMIZE, rectangle)] is received.

This function calculates the suitable rectangle size of this responder within the specified hint rectangle[i.e., rectangle element (P32 parameter) of the region event].

The suitable rectangle size is stored into the size element of the rectangle argument as a result of calculation. It is recommended not to change the origin of the rectangle argument in this function.

[Note] Region event[(SFEVT_RESPONDER_BOUND, SFP16_BOUND_OPTIMIZE) event]

If the rectangle argument of the hint region is specified, the SFYResponder::GetSuitableBound function will send the region event [SFXEvent(SFEVT_RESPONDER_BOUND, SFP16_BOUND_OPTIMIZE, rectangle)] to this responder.

Then, the SFYWidget::HandleBoundOptimize virtual function will be called.

The rectangle element (P32 parameter) of the region event is set to the hint region as an initial value.

Internal Implementation

Internal implementation of the SFYMultipleEditWidget::HandleBoundOptimize function is as follows:

SFYMultipleTextWidgetSmp        _widget;

/*protected virtual */Void SFYMultipleEditWidget::HandleBoundOptimize(SFXRectanglePtr rectangle) const
{
    rectangle->SetSize(_widget->GetSuitableBound(*rectangle).GetSize());
    return;
}// SFYMultipleEditWidget::HandleBoundOptimize //

Reference

SFYResponder::GetSuitableBound | SFYMultipleTextWidget::HandleBoundOptimize | SFYMultipleTextWidget | SFXEvent | Region Event[SFEVT_RESPONDER_BOUND] | Handler for the Region Event[XANDLER_DECLARE_VOIDBOUND]


SFYMultipleEditWidget::HandleBoundReal
This function will be called when the (SFEVT_RESPONDER_BOUND, SFP16_BOUND_REAL) event is received. [Perform the processing when the real region is changed.]
[ protected, virtual ]
Void HandleBoundReal(Void);

Description

This function will be called when the (SFEVT_RESPONDER_BOUND, SFP16_BOUND_REAL) event is received.

In case you want to perform your own processing when the real region is updated, override this function.

The default implementation is to equalize the virtual region with the real region.

[Caution] About the virtual region

In this class, it is recommended to equalize the virtual region with the real region for the intuitive text alignment or scroll.

For instance, when

[Width of virtual region] > [Width of real region]

stands up, the left edge, the right edge, or both the edges of the row which is longer than [width of virtual region] cannot be displayed on the device screen since the text is turned down by this width. And tt cannot be displayed by scrolling left or right.

Suppose the following relation stands up.

[Height of virtual region] ≧ [Height of multiple text] > [Height of real region]

In this case, though all the text is not displayed, the multiple text will not scroll even if the UP key or the DOWN key is pressed.

[Note] Sending the (SFEVT_RESPONDER_BOUND, SFP16_BOUND_REAL) event

The (SFEVT_RESPONDER_BOUND, SFP16_BOUND_REAL) event will occur when the real region is changed by calling the SFYResponder::SetRealBound function.

[Note] Processing when the real region is changed

Other than overriding this virtual function, there is another method to define and implement the handler for the region event[XANDLER_DECLARE_VOIDBOUND], and register it into the responder.

In the processing when the real region is updated, this virtual function is executed first, and next the handlers for the region event are executed in the registered order.

In almost all cases, the method to override this virtual function is adopted since defining, implementing and registering the handler for the region event can be omitted.

Internal Implementation

Internal implementation of the SFYMultipleEditWidget::HandleBoundReal function is as follows:

/*protected virtual */Void SFYMultipleEditWidget::HandleBoundReal(Void)
{
    SetVirtualBound(SFXRectangle(SFXGrid::ZeroInstance(), GetRealBound().GetSize()));
    return;
}// SFYMultipleEditWidget::HandleBoundReal //

Reference

SFYResponder::SetRealBound | Region Event[SFEVT_RESPONDER_BOUND] | Handler for the Region Event[XANDLER_DECLARE_VOIDBOUND] | Real Region | Virtual Region | Local Region


SFYMultipleEditWidget::HandleBoundRequest
This function will be called when the (SFEVT_RESPONDER_BOUND, SFP16_BOUND_REQUEST) event is received. [Calculate the suitable rectangle size of this responder.]
[ protected, virtual, const ]
Void HandleBoundRequest(
    SFXRectanglePtr rectangle   // calculated region
);

Description

This function will be called when the region event [SFXEvent(SFEVT_RESPONDER_BOUND, SFP16_BOUND_REQUEST, rectangle)] is received.

This function calculates the suitable rectangle size of this responder.

The suitable rectangle size is stored into the size element of the rectangle argument as a result of calculation. It is recommended not to change the origin element of the rectangle argument within this function.

[Note] Region event[(SFEVT_RESPONDER_BOUND, SFP16_BOUND_REQUEST) event]

If the rectangle argument of the hint region is not specified, the SFYResponder::GetSuitableBound function will send the region event [SFXEvent(SFEVT_RESPONDER_BOUND, SFP16_BOUND_REQUEST, rectangle)] to this responder.

Then, the SFYWidget::HandleBoundRequest virtual function will be called.

The rectangle element (P32 parameter) of the region event is set to the real region as an initial value.

[Tip] Tip
Default value of the real region: SFXRectangle(0, 0, 0, 0)

Internal Implementation

Internal implementation of the SFYMultipleEditWidget::HandleBoundRequest function is as follows:

SFYMultipleTextWidgetSmp        _widget;

/*protected virtual */Void SFYMultipleEditWidget::HandleBoundRequest(SFXRectanglePtr rectangle) const
{
    rectangle->SetSize(_widget->GetSuitableBound().GetSize());
    return;
}// SFYMultipleEditWidget::HandleBoundRequest //

Reference

SFYResponder::GetSuitableBound | SFYMultipleTextWidget::HandleBoundRequest | SFYMultipleTextWidget | SFXEvent | Real Region | Local Region | Virtual Region | Getting the Suitable Size of Responder for Displaying a Multiple Text | Region Event[SFEVT_RESPONDER_BOUND] | Handler for the Region Event[XANDLER_DECLARE_VOIDBOUND]


SFYMultipleEditWidget::HandleBoundVirtual
This function will be called when the (SFEVT_RESPONDER_BOUND, SFP16_BOUND_VIRTUAL) event is received. [Perform the processing when the virtual region is changed.]
[ protected, virtual ]
Void HandleBoundVirtual(Void);

Description

This function will be called when the (SFEVT_RESPONDER_BOUND, SFP16_BOUND_VIRTUAL) event is received.

In case you want to perform your own processing when the virtual region is changed, override this virtual function.

The default implementation is to equalize the real region with the new local region and relocate this responder to fit into the new virtual region.

[Caution] About the virtual region

In this class, it is recommended to equalize the virtual region with the real region for the intuitive text alignment or scroll.

For instance, when

[Width of virtual region] > [Width of real region]

stands up, the left edge, the right edge, or both the edges of the row which is longer than [width of virtual region] cannot be displayed on the device screen since the text is turned down by this width. And tt cannot be displayed by scrolling left or right.

Suppose the following relation stands up.

[Height of virtual region] ≧ [Height of multiple text] > [Height of real region]

In this case, though all the text is not displayed, the multiple text will not scroll even if the UP key or the DOWN key is pressed.

[Note] Sending the (SFEVT_RESPONDER_BOUND, SFP16_BOUND_VIRTUAL) event

The (SFEVT_RESPONDER_BOUND, SFP16_BOUND_VIRTUAL) event will occur when the virtual region is changed by calling the SFYResponder::SetRealBound or SFYResponder::SetVirtualBound function.

[Note] Another method when the virtual region is changed

Other than overriding this virtual function, it is possible to define and implement the handler for region event[XANDLER_DECLARE_VOIDBOUND], and register it into the responder.

In the processing when the virtual region is updated, this virtual function is executed first, and next the handlers for region event are executed in the registered order.

In almost all cases, the method to override this virtual function is adopted since defining, implementing and registering the handler for region event can be omitted.

Internal Implementation

Internal implementation of the SFYMultipleEditWidget::HandleBoundVirtual function is as follows:

SFYMultipleTextWidgetSmp        _widget;

/*protected virtual */Void SFYMultipleEditWidget::HandleBoundVirtual(Void)
{
    Relocate();
    return;
}// SFYMultipleEditWidget::HandleBoundVirtual //

/*private */Void SFYMultipleEditWidget::Relocate(Void)
{
    _widget->SetRealBound(GetLocalBound());
    return;
}// SFYMultipleEditWidget::Relocate //

Reference

SFYMultipleTextWidget | SFYMultipleEditWidget::SetText | SFYResponder::SetRealBound | SFYResponder::SetVirtualBound | SFYMultipleTextWidget | Region Event[SFEVT_RESPONDER_BOUND] | Handler for the Region Event[XANDLER_DECLARE_VOIDBOUND] | Virtual Region | Real Region | Local Region


SFYMultipleEditWidget::NewInstance
Create a new instance of this responder class.
[ public, static ]
SFYMultipleEditWidgetSmp NewInstance(
    SFCErrorPtr exception = null   // error value
);

Argument

exception

Return the error value generated inside the function.

Return value

  • If succeeds: not null pointer
  • Otherwise: null pointer

Description

This function creates a new instance of this responder class.

If succeeds, a not null pointer will be returned, and the "exception" argument is SFERR_NO_ERROR. If fails such as insufficient memory, a null pointer will be returned, and the "exception" argument holds the error value.

Example

The code to create a new instance of this responder class is as follows:

SFYMultipleEditWidgetSmp _multipleeditwidget;
SFCError error;

if ((_multipleeditwidget = SFYMultipleEditWidget::NewInstance(&error)) != null) {

    ...
}

SFYMultipleEditWidget::PageDown
Scroll down the multiple text by one page.
[ public ]
Bool PageDown(Void);

Return value

  • If succeeds: true
  • Otherwise: false

Reference

SFYMultipleEditWidget::PageUp | SFYMultipleTextWidget::PageDown


SFYMultipleEditWidget::PageUp
Scroll up the multiple text by one page.
[ public ]
Bool PageUp(Void);

Return value

  • If succeeds: true
  • Otherwise: false

Reference

SFYMultipleEditWidget::PageDown | SFYMultipleTextWidget::PageUp


SFYMultipleEditWidget::ScrollDown
Scroll down the multiple text by the scroll-step.
[ public ]
Bool ScrollDown(Void);

Return value

  • If succeeds: true
  • Otherwise: false

Reference

SFYMultipleEditWidget::ScrollUp | SFYMultipleEditWidget::SetScrollStep | SFYMultipleTextWidget::ScrollDown


SFYMultipleEditWidget::ScrollUp
Scroll up the multiple text by the scroll-step.
[ public ]
Bool ScrollUp(Void);

Return value

  • If succeeds: true
  • Otherwise: false

Reference

SFYMultipleEditWidget::ScrollDown | SFYMultipleEditWidget::SetScrollStep | SFYMultipleTextWidget::ScrollUp


SFYMultipleEditWidget::SetFont
Set the font to the specified value .
[ public ]
Void SetFont(
    AEEFont param   // value to set
);

Description

Default: AEE_FONT_NORMAL

Reference

SFYMultipleEditWidget::GetFont


SFYMultipleEditWidget::SetHorizontalAlign
Set the horizontal alignment to the specified value.
[ public ]
Void SetHorizontalAlign(
    HorizontalEnum param   // value to set
);

Description

This function sets the horizontal alignment to the specified value.

Default: SFYMultipleTextWidget::DEFAULT_HORIZONTAL

For the value of SFYMultipleTextWidget::DEFAULT_HORIZONTAL, refer to SFYMultipleTextWidget::HorizontalEnum.

Reference

SFYMultipleEditWidget::GetHorizontalAlign | SFYMultipleEditWidget::HorizontalEnum | SFYMultipleTextWidget::HorizontalEnum


SFYMultipleEditWidget::SetInputMode
Set the text input mode to the specified value.
[ public ]
Void SetInputMode(
    AEETextInputMode param   // text input mode
);

Description

This function sets the text input mode for the text input control of the standard BREW to the specified value. For more derail, refer to ITEXTCTL_SetInputMode() and AEETextInputMode of the BREW reference.

Default: AEE_TM_CURRENT(currently active input mode).

Reference

SFYMultipleEditWidget::GetInputMode | SFXEditProperty::SetInputMode | BREW API ITEXTCTL_SetInputMode | BREW API AEETextInputMode


SFYMultipleEditWidget::SetMaximumLength
Set the maximum number of characters for text input to the specified value.
[ public ]
SFCError SetMaximumLength(
    UInt16 param   // maximum number of characters for text input
);

Description

This function sets the maximum number of characters for the text input control of the standard BREW to the specified value. For more derail, refer to ITEXTCTL_SetMaxSize() of the BREW reference.

Reference

SFYMultipleEditWidget::GetMaximumLength | SFXEditProperty::SetMaximumLength | BREW API ITEXTCTL_SetMaxSize


SFYMultipleEditWidget::SetPasswordMode
Set the password mode to the specified value.
[ public ]
SFCError SetPasswordMode(
    Bool param   // value to set(If password mode, true; Otherwise, false)
);

Description

If "true" is specified as an argument, TP_PASSWORD is set to the property of the text input control of the standard BREW. At this time, every input character is displayed as "*". And the actual input string is managed in the buffer. For more derail, refer to ITEXTCTL_SetProperties() and AEE ITextCtl Properties of the BREW reference.

Default: false

Reference

SFYMultipleEditWidget::GetPasswordMode | SFXEditProperty::SetPasswordMode | BREW API ITEXTCTL_SetProperties | BREW API AEE ITextCtl Properties


SFYMultipleEditWidget::SetSFBMenuCtlClassID
[DEPRECATED] Set the class ID of SFBMenuCtl to the specified value.
[ public ]
Void SetSFBMenuCtlClassID(
    AEECLSID param   // class ID to set
);

Description

[Note] DEPRECATED

This API will be discontinued in SophiaFramework UNIVERSE 6.0.

It is recommended to set the class ID by calling the SFXBaseEditor::SetSFBMenuCtlClassID function of the text input control editor, which is gotten by calling the SFYApplication::GetEditor function.

Reference

SFYMultipleEditWidget::GetSFBMenuCtlClassID | SFBMenuCtl


SFYMultipleEditWidget::SetSFBTextCtlClassID
[DEPRECATED] Set the class ID of SFBTextCtl to the specified value.
[ public ]
Void SetSFBTextCtlClassID(
    AEECLSID param   // class ID to set
);

Description

[Note] DEPRECATED

This API will be discontinued in SophiaFramework UNIVERSE 6.0.

It is recommended to set the class ID by calling the SFXBaseEditor::SetSFBTextCtlClassID function of the text input control editor, which is gotten by calling the SFYApplication::GetEditor function.

Reference

SFYMultipleEditWidget::GetSFBTextCtlClassID | SFBTextCtl


SFYMultipleEditWidget::SetScrollStep
Set the scroll-step to the specified value. [pixels]
[ public ]
Void SetScrollStep(
    SInt16 param   // value to set
);

Description

This function sets the number of pixels of each scroll. If "-1"(this is default value) is set, the height of the " " character of the currently used font will be the scroll-step.

Default: SFYMultipleTextWidget::DEFAULT_STEP [pixels]

For the value of SFYMultipleTextWidget::DEFAULT_STEP, refer to SFYMultipleTextWidget::DefaultEnum.

Reference

SFYMultipleEditWidget::GetScrollStep | SFYMultipleEditWidget::DefaultEnum | SFYMultipleTextWidget::DefaultEnum


SFYMultipleEditWidget::SetText
Set the text to the specified value.
[ public ]
SFCError SetText(
    SFXPathConstRef path   // path of resource file
    UInt16 id              // resource ID
);
[ public ]
SFCError SetText(
    SFXWideStringConstRef param   // text
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • If insufficient memory: SFERR_NO_MEMORY
  • Otherwise: SFERR_FAILED

Description

This function sets the text to be displayed to the specified value.

The value of string is set directly in the argument, or read from the resource file.

Reference

SFYMultipleEditWidget::GetText SFYMultipleEditWidget::SetHorizontalAlign | SFYMultipleEditWidget::SetVerticalAlign | SFYMultipleEditWidget::SetTextColor | SFYMultipleEditWidget::SetFont


SFYMultipleEditWidget::SetTextColor
Set the color of text to the specified value.
[ public ]
Void SetTextColor(
    SFXRGBColorConstRef param   // value to set
);

Description

Default: SFXRGBColor(0x00, 0x00, 0x00, 0x00)[black color]

In the "inactive" state, the text will be drawn in the color of which each RGB value is subtracted 0x44 from the color set with this function if the brightness of this color is greater than 0x7F. Otherwise it will be drawn in the color of which each RGB value is added 0x44 on the color set with this function.

The brightness of color can be obtained by calling the SFXRGBColor::GetBrightness function.

Reference

SFYMultipleEditWidget::GetTextColor | SFXRGBColor::GetBrightness | SFXRGBColor | State


SFYMultipleEditWidget::SetVerticalAlign
Set the vertical alignment to the specified value.
[ public ]
Void SetVerticalAlign(
    VerticalEnum param   // value to set
);

Description

This function sets the vertical alignment to the specified value.

Default: SFYMultipleTextWidget::DEFAULT_VERTICAL

For the value of SFYMultipleTextWidget::DEFAULT_VERTICAL, refer to SFYMultipleTextWidget::VerticalEnum.

Reference

SFYMultipleEditWidget::GetVerticalAlign | SFYMultipleEditWidget::VerticalEnum | SFYSingleTextWidget::VerticalEnum


SFYMultipleEditWidget::SnapAlign
Put back the scroll position of the multiple text to the initial state.
[ public ]
Bool SnapAlign(Void);

Description

This function puts back the scroll position of the multiple text to the initial state, which is set with the SetVerticalAlign() function.

The execution result of this function differs as below depending on the settings of the SetVerticalAlign() function.

  1. In case of top-aligned: the scroll position will be put back to the top.
  2. In case of center-aligned: the scroll position will be put back to the center.
  3. In case of right-aligned: the scroll position will be put back to the bottom.

If both of the top and the bottom of the multiple text are placed in the local region, the scroll position will be the same.

Reference

SFYMultipleEditWidget::SetVerticalAlign | SFYMultipleTextWidget::SnapAlign


SFYMultipleEditWidget::SnapDown
Scroll down the multiple text to the bottom.
[ public ]
Bool SnapDown(Void);

Return value

  • If succeeds: true
  • Otherwise: false

Reference

SFYMultipleEditWidget::SnapUp | SFYMultipleTextWidget::SnapDown


SFYMultipleEditWidget::SnapUp
Scroll down the multiple text to the top.
[ public ]
Bool SnapUp(Void);

Return value

  • If succeeds: true
  • Otherwise: false

Reference

SFYMultipleEditWidget::SnapDown | SFYMultipleTextWidget::SnapUp


SFYMultipleEditWidget::CodeEnum
Constant that represents the SFYMultipleEditWidget class.
enum CodeEnum {
    CODE_TYPE = four_char_code('+', 'm', 'e', 'd')
};
SFMTYPEDEFTYPE(CodeEnum)

Reference

SFYResponder::GetType | SFYResponder::SetType


SFYMultipleEditWidget::DefaultEnum
Constants that represent the default value for various parameters.
enum DefaultEnum {
    DEFAULT_STEP   = SFYMultipleTextWidget::DEFAULT_STEP   // scroll-step
};
SFMTYPEDEFTYPE(DefaultEnum)

Reference

SFYMultipleTextWidget::DefaultEnum


SFYMultipleEditWidget::HorizontalEnum
Constants that represent the horizontal alignment.
enum HorizontalEnum {
    HORIZONTAL_LEFT    = SFYMultipleTextWidget::HORIZONTAL_LEFT,   // left-aligned
    HORIZONTAL_CENTER  = SFYMultipleTextWidget::HORIZONTAL_CENTER, // center-aligned
    HORIZONTAL_RIGHT   = SFYMultipleTextWidget::HORIZONTAL_RIGHT,  // right-aligned
    DEFAULT_HORIZONTAL = SFYMultipleTextWidget::DEFAULT_HORIZONTAL // default: center-aligned
};
SFMTYPEDEFTYPE(HorizontalEnum)

Reference

SFYMultipleTextWidget::HorizontalEnum


SFYMultipleEditWidget::VerticalEnum
Constants that represent the vertical alignment.
enum VerticalEnum {
    VERTICAL_TOP     = SFYMultipleTextWidget::VERTICAL_TOP,     // top-aligned
    VERTICAL_MIDDLE  = SFYMultipleTextWidget::VERTICAL_MIDDLE,  // center-aligned
    VERTICAL_BOTTOM  = SFYMultipleTextWidget::VERTICAL_BOTTOM,  // bottom-aligned
    DEFAULT_VERTICAL = SFYMultipleTextWidget::DEFAULT_VERTICAL  // default: center-aligned
};
SFMTYPEDEFTYPE(VerticalEnum)

Reference

SFYMultipleTextWidget::VerticalEnum