Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #10290
| Path | csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | "Karl-Heinz" <invalid@invalid.invalid> |
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: Cursor position in a short SingleLineEdit |
| Date | Wed, 15 Mar 2017 08:01:35 +0100 |
| Lines | 32 |
| Message-ID | <eis76qFp8o2U2@mid.individual.net> (permalink) |
| References | <91b5b94f-c406-4699-be07-8ee2988a7e0a@googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; format=flowed; charset="UTF-8"; reply-type=original |
| Content-Transfer-Encoding | 7bit |
| X-Trace | individual.net ZZvJakjPVA2A4Df8/JtuWAmxhwa36v4ST8kd2bR5E42Uw0cbI= |
| Cancel-Lock | sha1:60I7+Sdz8mfSzekHHVwTlDVmmAk= |
| In-Reply-To | <91b5b94f-c406-4699-be07-8ee2988a7e0a@googlegroups.com> |
| X-Priority | 3 |
| X-MSMail-Priority | Normal |
| Importance | Normal |
| X-Newsreader | Microsoft Windows Live Mail 16.4.3564.1216 |
| X-MimeOLE | Produced By Microsoft MimeOLE V16.4.3564.1216 |
| Xref | csiph.com comp.lang.clipper.visual-objects:10290 |
Show key headers only | View raw
Hi Henry,
>
> The text in the SLE is longer then the control itself.
>
i gave it a try using a modified EditFocusChange(). No matter if the sle
gains or looses the focus, the start of the text is now visible.
METHOD EditFocusChange(oEditFocusChangeEvent) CLASS DlgTest
LOCAL oControl AS Control
LOCAL lGotFocus AS LOGIC
oControl := IIF(oEditFocusChangeEvent == NULL_OBJECT, NULL_OBJECT,
oEditFocusChangeEvent:Control)
lGotFocus := IIF(oEditFocusChangeEvent == NULL_OBJECT, FALSE,
oEditFocusChangeEvent:GotFocus)
SUPER:EditFocusChange(oEditFocusChangeEvent)
//Put your changes here
IF IsInstanceOf ( oControl , #singleLineEdit )
PostMessage ( oControl:Handle() , EM_setsel , 0 , 0L)
ENDIF
RETURN NIL
regards
Karl-Heinz
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Cursor position in a short SingleLineEdit zodcomag@gmail.com - 2017-03-13 05:49 -0700 Re: Cursor position in a short SingleLineEdit Franz Rachbauer <office@rachbauer.org> - 2017-03-13 18:44 +0100 Re: Cursor position in a short SingleLineEdit "Jamal" <noooospam@example.com> - 2017-03-13 13:50 -0400 Re: Cursor position in a short SingleLineEdit zodcomag@gmail.com - 2017-03-14 11:44 -0700 Re: Cursor position in a short SingleLineEdit "Karl-Heinz" <invalid@invalid.invalid> - 2017-03-15 08:01 +0100 Re: Cursor position in a short SingleLineEdit zodcomag@gmail.com - 2017-03-15 03:51 -0700
csiph-web