### 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.

~ICnrReallocStringEvent

      public:
      virtual ~ICnrReallocStringEvent()

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

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.

currentText

      public:
      virtual IString currentText() const

  Returns the current text stored in the edit field.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

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

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.

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

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

  -     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

  ICnrEvent

  -     virtual ~ICnrEvent()

  -     ICnrEvent(const IControlEvent& event)

  IControlEvent

  -     virtual ~IControlEvent()

  -     virtual unsigned long controlId() const

  -     IControlEvent(const IEvent& event)

  -     IControlEvent(const IControlEvent& event)

  IEvent

  -     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

#### Inherited Public Data

  - None

#### Inherited Protected Functions

  ICnrEvent

  -     unsigned long containerId() const

  ICnrEditEvent

  -     char ** textRef() const

  -     unsigned long textSize() const

#### Inherited Protected Data

  - None