Simple Win32Lib Cursor/Caret Problem

new topic     » topic index » view thread      » older message » newer message

I think this is a simple problem but I'm not really sure how to go about
resolving it..

Situation:
Using Win32LIB I have created a Window with an MLE and 2 SLE Edit controls
in it. I setText a couple of lines in the MLE and set focus on the MLE
Control.

Problem:

I want to be have the cursor be at the end of the text in the MLE Control.
If I try and use setCaretPos inside a onGotFocus procedure I get an error.
If I put the setCaretPos after the setFocus nothing seems to happen.

Can anyone tell me if I am using setCaretPos correctly and if not how should
I go about getting the cursor to the end of the text in the control?

Thanks for any help,
the newGreg.

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu