Announcement

Collapse
No announcement yet.

Insert text at end of a Edit Control

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Insert text at end of a Edit Control

    I would like to insert text at the end of a multi-line Edit Control.
    I could copy the existing text into a variable, add the new
    text and then CALL SetWindowText (hW, @psz), but that's tacky.

    Is there a simplier way?

    I see I can find the end using
    iCount = SendMessage(hwndEdit, %EM_GETLINECOUNT,0,0)
    Is there a way to use this to insert?


    ------------------

  • #2
    Set the selection with %EM_SETSEL and then use %EM_REPLACESEL.


    ------------------
    Lance
    PowerBASIC Support
    mailto:[email protected][email protected]</A>
    Lance
    mailto:[email protected]

    Comment

    Working...
    X