Announcement

Collapse
No announcement yet.

Insert text at end of a Edit Control

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

  • Lance Edmonds
    replied
    Set the selection with %EM_SETSEL and then use %EM_REPLACESEL.


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

    Leave a comment:


  • Larry Rudner
    started a topic Insert text at end of a Edit Control

    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?


    ------------------
Working...
X