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.
You can construct and destruct objects of this class.
![]() |
public:
virtual ~ICnrReallocStringEvent()
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
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.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
Use these members to query and set the accessible attributes of this class.
![]() |
public:
virtual IString currentText() const
Returns the current text stored in the edit field.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
virtual IString newText() const
Returns the text the user added to the edit control.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
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.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
Use these members to reallocate the storage for the text field.
![]() |
public:
void reallocateString()
Creates and stores an IString of the appropriate size to hold the new data.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
void reallocateText()
Calls global operator new to acquire storage of the appropriate size to hold the new data.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
virtual ~ICnrEditEvent()
virtual IContainerColumn* column() const
virtual IContainerControl* container() const
ICnrEditEvent(const IControlEvent& event)
bool isDetailsData() const
bool isLeftDetails() const
bool isLeftDetailsHeading() const
bool isRightDetails() const
bool isRightDetailsHeading() const
bool isTitleWindow() const
virtual IContainerObject* object() const
virtual ~ICnrEvent()
ICnrEvent(const IControlEvent& event)
virtual ~IControlEvent()
virtual unsigned long controlId() const
IControlEvent(const IEvent& event)
IControlEvent(const IControlEvent& event)
virtual ~IEvent()
IWindowHandle controlHandle() const
virtual IWindow* controlWindow() const
IEvent& decrementOwnerLevels()
virtual IWindow* dispatchingWindow() const
unsigned long eventId() const
IWindowHandle handle() const
IEvent( const IWindowHandle& handle, unsigned long eventId, const IEventParameter1& parameter1, const IEventParameter2& parameter2 )
IEvent(const IEvent& event)
IEvent( IWindow* window, unsigned long eventId, const IEventParameter1& parameter1, const IEventParameter2& parameter2 )
IEvent& operator =(const IEvent& event)
IEventParameter1 parameter1() const
IEventParameter2 parameter2() const
bool passToOwner() const
IEventResult result() const
IEvent& setControlHandle(const IWindowHandle& handle)
IEvent& setDispatchingHandle(const IWindowHandle& handle)
IEvent& setDispatchingWindow(IWindow* window)
IEvent& setHandle(const IWindowHandle& handle)
IEvent& setNumberOfLevels(int levels = - 1)
IEvent& setPassToOwner(bool passOn = true)
IEvent& setResult(const IEventResult& eventResult)
IEvent& setResult(bool eventResult)
virtual IWindow* window() const
unsigned long containerId() const
char ** textRef() const
unsigned long textSize() const