Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #10231 > unrolled thread
| Started by | zodcomag@gmail.com |
|---|---|
| First post | 2017-03-02 00:11 -0800 |
| Last post | 2017-03-09 11:48 +0000 |
| Articles | 4 — 3 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
bBrowser cursor position zodcomag@gmail.com - 2017-03-02 00:11 -0800
Re: bBrowser cursor position katercamille8@gmail.com - 2017-03-02 04:41 -0800
Re: bBrowser cursor position zodcomag@gmail.com - 2017-03-02 07:37 -0800
Re: bBrowser cursor position Martin <Martin@spam.spam> - 2017-03-09 11:48 +0000
| From | zodcomag@gmail.com |
|---|---|
| Date | 2017-03-02 00:11 -0800 |
| Subject | bBrowser cursor position |
| Message-ID | <d94e7150-8b1f-4d74-a144-d7d312a070a8@googlegroups.com> |
I want to edit in CellEdit() a string field for time. I set a picture as follows: oCellEditEvent:EditControl:Picture := "99:99" and the cursor position is not on the first place. How can I correct it? Henry
[toc] | [next] | [standalone]
| From | katercamille8@gmail.com |
|---|---|
| Date | 2017-03-02 04:41 -0800 |
| Message-ID | <dab29a1a-77da-44c0-970a-e1eedd7c3122@googlegroups.com> |
| In reply to | #10231 |
Henry,
Use Selection{}
oCellEditEvent:EditControl:selection:=Selection{0,0}
Camille
On Thursday, March 2, 2017 at 9:11:24 AM UTC+1, zodc...@gmail.com wrote:
> I want to edit in CellEdit() a string field for time.
> I set a picture as follows:
> oCellEditEvent:EditControl:Picture := "99:99"
>
> and the cursor position is not on the first place.
>
> How can I correct it?
>
> Henry
[toc] | [prev] | [next] | [standalone]
| From | zodcomag@gmail.com |
|---|---|
| Date | 2017-03-02 07:37 -0800 |
| Message-ID | <e84491ce-e39a-4459-81eb-8f8a8e4522b3@googlegroups.com> |
| In reply to | #10231 |
Camille thanks Unfortunately it does not work. The cursor start always on 2nd. character, no matter selection I choose. Thanks Henry
[toc] | [prev] | [next] | [standalone]
| From | Martin <Martin@spam.spam> |
|---|---|
| Date | 2017-03-09 11:48 +0000 |
| Message-ID | <o9rf9p$mli$1@dont-email.me> |
| In reply to | #10231 |
Get a SLE working how you want it then use CellEdit to call this instead
symCombo := #MyTimeSLE
oEvent:EditControl := oControl:EditCreate(;
nCellCol, ;
nCellRow, ;
nCellRec, ;
symCombo)
My classes all eventually end up as SingleLineEdit, almost all via the
bComboEdit class as they are selection fields.
You can put all sorts of lovely stuff within the SLE
Like this
CLASS MyTimeSLE INHERIT SingleLineEdit
METHOD Init(oOwner, xID, oPoint, oDimension, kStyle) CLASS MyTimeSLE
SUPER:Init(oOwner, xID, oPoint, oDimension, kStyle)
Self:FieldSpec := FTime{}
RETURN SELF
CLASS FTime INHERIT FIELDSPEC
METHOD Init() CLASS FTime
SUPER:Init(HyperLabel{"FieldTime","","",""},"C",8,0)
SELF:Picture:='99:99:99'
RETURN SELF
On 02/03/2017 08:11, zodcomag@gmail.com wrote:
> I want to edit in CellEdit() a string field for time.
> I set a picture as follows:
> oCellEditEvent:EditControl:Picture := "99:99"
>
> and the cursor position is not on the first place.
>
> How can I correct it?
>
> Henry
>
>
>
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web