Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #10267

Re: bBrowser cursor position

From Martin <Martin@spam.spam>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: bBrowser cursor position
Date 2017-03-09 11:48 +0000
Organization A noiseless patient Spider
Message-ID <o9rf9p$mli$1@dont-email.me> (permalink)
References <d94e7150-8b1f-4d74-a144-d7d312a070a8@googlegroups.com>

Show all headers | View raw


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
>
>
>

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

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

csiph-web