ICnrReallocStringEvent

The ICnrReallocStringEvent class retrieves information about a container direct edit event. Objects of this class are dispatched when text is edited in the container and it is necessary to reallocate the storage for the text.


ICnrReallocStringEvent - Member Functions and Data by Group

Constructors & Destructor

You can construct and destruct objects of this class.


[view class]
~ICnrReallocStringEvent
public:
virtual ~ICnrReallocStringEvent()

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
ICnrReallocStringEvent
public:
ICnrReallocStringEvent(const IControlEvent& event)

Although you can create objects of this class, typically ICnrEditHandler::dispatchHandlerEvent creates them from an IControlEvent object in response to a notification from the container that text has changed and storage for the text may need to be reallocated.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


Event Information

Use these members to query and set the accessible attributes of this class.


[view class]
currentText
public:
virtual IString currentText() const

Returns the current text stored in the edit field.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
newText
public:
virtual IString newText() const

Returns the text the user added to the edit control.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
newTextSize
public:
long newTextSize() const

Returns the size (not counting the NULL termination) of the storage that needs to be allocated to store the new text string.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


Text Allocation

Use these members to reallocate the storage for the text field.


[view class]
reallocateString
public:
void reallocateString()

Creates and stores an IString of the appropriate size to hold the new data.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
reallocateText
public:
void reallocateText()

Calls global operator new to acquire storage of the appropriate size to hold the new data.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


ICnrReallocStringEvent - Inherited Member Functions and Data

Inherited Public Functions

ICnrEditEvent
ICnrEvent
IControlEvent
IEvent

Inherited Public Data

Inherited Protected Functions

ICnrEvent
ICnrEditEvent

Inherited Protected Data