Re: Multiline Edit text select
- From: "Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT com>
- Date: Mon, 28 Apr 2008 08:11:19 -0700
My best guess is that you're just doing the EM_SETSEL wrong. Have you tried
using 0, and -1 as the wParam and lParam parameters with EM_SETSEL?
Remember, too, that you must have a working message loop in order to have
messages get through to *any* window to which you might send them, including
to your edit control.
Paul T.
"Peter A" <as6ey6j@xxxxxxxxx> wrote in message
news:%23TUgej6pIHA.3428@xxxxxxxxxxxxxxxxxxxxxxx
Well, I have a multiline Edit control and I fill it with text on
InitDialog.
The strange and irritating thing is, the text appears highlighted in its
entirety - which presumably means "selected" - and I am quite unable to
unselect (or unhighlight) the text from within the program. Sending
EM_SETSEL with start position -1 (or any other value) has apparently no
effect.
Stranger still, I replace some place holders in the text by variable data,
which involves selecting the text and using EM_REPLACESEL, and this works
O.K. Yet, at the end of all this, still all the text in the control is
selected.
(Behaviour is the same on the Emulator and on the device (Windows CE
2003)).
Anyone any ideas?
Thanks
--
Peter Aspey
E-mail: replace 6 by p
.
- Prev by Date: they keep removing my code
- Next by Date: Re: This application requires a newer version of the .NET Compact fram
- Previous by thread: they keep removing my code
- Next by thread: Re: Multiline Edit text select
- Index(es):
Relevant Pages
|
|