company logo

ControlContext :: textPosition - Text position

The text position is the cursor position in a text edit control. The position is provided as point coordinates (line,column). Both, line and column start with 1, i.e. the first character in a text has position (1,1).

Return value:  Point ( odabagui::Point  )

The point defines the vertical and the horizontal position in an rectangle.

Implementation overview

Implementation details

  1. Get current text position
    odabagui::Point ControlContext  :: textPosition (  )

    The function returns the position of the cursor in a text control. When the control is not a text edit control, an exception is thrown..

  2. to list
  3. Change text position
    odabagui::Point ControlContext  :: textPosition ( odabagui::Point &cPoint )

    The function changes the cursor position to the value passed in cPoint.

    • cPoint - Constant area position
  4. to list