Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #10285
| From | Franz Rachbauer <office@rachbauer.org> |
|---|---|
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: Cursor position in a short SingleLineEdit |
| Date | 2017-03-13 18:44 +0100 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <oa6lqr$b2s$1@gioia.aioe.org> (permalink) |
| References | <91b5b94f-c406-4699-be07-8ee2988a7e0a@googlegroups.com> |
Henry, oDCsleField:FocusSelect := FSEL_HOME oDCsleField:SetFocus() sets cursor at the beginning and nothing selected. Regards, Franz Am 13.03.2017 um 13:49 schrieb zodcomag@gmail.com: > The text in the SLE is longer then the control itself. > > When entering and exiting the SLE, the cursor is at the end of the text, the text is scrolled, which means that the start of the text is not seen. > > I want to change the behaviour. > > For exiting the SLE, I put in the EditFocusChane: > if IsInstanceOf(oControl, #SingleLineEdit) > oSLE := oControl > oSLE:__CurPos := 1 // __CurPos is not a Control method > endif > > It does work if lGotFocus = .F. (exiting the control), > but not entering the control (lGotFocus = .T.) > > Any idea how can I enter the control so the cursor is in the beginnig of the text, and the text does not scroll? > > Thanks > Henry > >
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