Grid with multiple columns, each column's currentcontrol being a
container, and the container made up of 3 textboxes.

When I hit the down arrow, the focus switch from grid.columns[i] to
grid.columns[i+1], rather than skipping to the next record.

Is there a way to avoid that?

--
iTech Consulting Services Limited
Expert in ePOS (Point-Of-Sales) solutions
Website: http://www.itech.com.hk (IE only)
Tel: (852)2325 3883 Fax: (852)2325 8288

Re: Grid with columns[].currentcontrol being containers by christophe

christophe
Fri Jun 29 03:05:04 CDT 2007

That's not by default.
Are you sure your are not doing this programmatically ?

regards
christophe

"Man-wai Chang" <toylet.toylet@gmail.com> schreef in bericht
news:%23dsBfGiuHHA.3816@TK2MSFTNGP05.phx.gbl...
>
> Grid with multiple columns, each column's currentcontrol being a
> container, and the container made up of 3 textboxes.
>
> When I hit the down arrow, the focus switch from grid.columns[i] to
> grid.columns[i+1], rather than skipping to the next record.
>
> Is there a way to avoid that?
>
> --
> iTech Consulting Services Limited
> Expert in ePOS (Point-Of-Sales) solutions
> Website: http://www.itech.com.hk (IE only)
> Tel: (852)2325 3883 Fax: (852)2325 8288



Re: Grid with columns[].currentcontrol being containers by Man-wai

Man-wai
Fri Jun 29 03:45:49 CDT 2007

> That's not by default.
> Are you sure your are not doing this programmatically ?

You meant it's normal to go from columns[i] to columns[i+1] when
pressing down arrow inside this grid?

--
iTech Consulting Services Limited
Expert in ePOS (Point-Of-Sales) solutions
Website: http://www.itech.com.hk (IE only)
Tel: (852)2325 3883 Fax: (852)2325 8288

Re: Grid with columns[].currentcontrol being containers by christophe

christophe
Fri Jun 29 03:59:55 CDT 2007

no,
it should go by default to the next record.

christophe

"Man-wai Chang" <toylet.toylet@gmail.com> schreef in bericht
news:OptroniuHHA.4764@TK2MSFTNGP05.phx.gbl...
>> That's not by default.
>> Are you sure your are not doing this programmatically ?
>
> You meant it's normal to go from columns[i] to columns[i+1] when pressing
> down arrow inside this grid?
>
> --
> iTech Consulting Services Limited
> Expert in ePOS (Point-Of-Sales) solutions
> Website: http://www.itech.com.hk (IE only)
> Tel: (852)2325 3883 Fax: (852)2325 8288



Re: Grid with columns[].currentcontrol being containers by Bernhard

Bernhard
Fri Jun 29 04:46:03 CDT 2007

Hi Man-wai Chang,

> Grid with multiple columns, each column's currentcontrol being a
> container, and the container made up of 3 textboxes.
>
> When I hit the down arrow, the focus switch from grid.columns[i] to
> grid.columns[i+1], rather than skipping to the next record.
>
> Is there a way to avoid that?
I also have seen this behaviour and could not find a solution.

Regards
Bernhard Sander

Re: Grid with columns[].currentcontrol being containers by Man-wai

Man-wai
Fri Jun 29 06:11:12 CDT 2007

> no,
> it should go by default to the next record.

So what's the most likely reason for my observation? I glanced all the
keypress() of the form, none of them re-defined the movement.

--
@~@ Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org
/ v \ Simplicity is Beauty! May the Force and Farce be with you!
/( _ )\ (Xubuntu 7.04) Linux 2.6.21.5
^ ^ 19:10:01 up 11 days 8:42 1 user load average: 0.07 0.03 0.01
news://news.3home.net news://news.hkpcug.org news://news.newsgroup.com.hk

Re: Grid with columns[].currentcontrol being containers by christophe

christophe
Fri Jun 29 06:34:16 CDT 2007

maybe a seek() or locate or whatever procedure that might
move the recordpointer.
If you move (or don't move) the recordpointer somewhere behind the scene,
this will affect the grid.activerow.

regards
christophe

"Man-wai Chang" <toylet.toylet@gmail.com> schreef in bericht
news:OObsm4juHHA.2752@TK2MSFTNGP06.phx.gbl...
>> no,
>> it should go by default to the next record.
>
> So what's the most likely reason for my observation? I glanced all the
> keypress() of the form, none of them re-defined the movement.
>
> --
> @~@ Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org
> / v \ Simplicity is Beauty! May the Force and Farce be with you!
> /( _ )\ (Xubuntu 7.04) Linux 2.6.21.5
> ^ ^ 19:10:01 up 11 days 8:42 1 user load average: 0.07 0.03 0.01
> news://news.3home.net news://news.hkpcug.org news://news.newsgroup.com.hk



Re: Grid with columns[].currentcontrol being containers by Man-wai

Man-wai
Fri Jun 29 06:56:59 CDT 2007

>> Is there a way to avoid that?
> I also have seen this behaviour and could not find a solution.

Until there is a better solution, I am doing these:

form.keypressed():
lparameter nKeyCode, nShiftAltCtrl
do case
case nKeyCode=5
* down arrow
nodefault
if upper(thisform.activecontrol.name)="GRD"
with thisform.grd
select (.recordsource)
skip
if eof()
go bottom
endif
endwith
endif

--
@~@ Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org
/ v \ Simplicity is Beauty! May the Force and Farce be with you!
/( _ )\ (Xubuntu 7.04) Linux 2.6.21.5
^ ^ 19:55:01 up 11 days 9:27 0 users load average: 0.02 0.03 0.00
news://news.3home.net news://news.hkpcug.org news://news.newsgroup.com.hk

Re: Grid with columns[].currentcontrol being containers by Man-wai

Man-wai
Mon Jul 02 20:44:33 CDT 2007

christophe wrote:
> maybe a seek() or locate or whatever procedure that might
> move the recordpointer.
> If you move (or don't move) the recordpointer somewhere behind the scene,
> this will affect the grid.activerow.

My problem was with the ActiveColumn, not ActiveRow. :)

--
iTech Consulting Services Limited
Expert in ePOS (Point-Of-Sales) solutions
Website: http://www.itech.com.hk (IE only)
Tel: (852)2325 3883 Fax: (852)2325 8288

Re: Grid with columns[].currentcontrol being containers by christophe

christophe
Tue Jul 03 03:19:07 CDT 2007

so there is no "special" behaviour of the grid ;-)

christophe
"Man-wai Chang" <toylet.toylet@gmail.com> schreef in bericht
news:eF4o5ORvHHA.4688@TK2MSFTNGP04.phx.gbl...
> christophe wrote:
>> maybe a seek() or locate or whatever procedure that might
>> move the recordpointer.
>> If you move (or don't move) the recordpointer somewhere behind the scene,
>> this will affect the grid.activerow.
>
> My problem was with the ActiveColumn, not ActiveRow. :)
>
> --
> iTech Consulting Services Limited
> Expert in ePOS (Point-Of-Sales) solutions
> Website: http://www.itech.com.hk (IE only)
> Tel: (852)2325 3883 Fax: (852)2325 8288



Re: Grid with columns[].currentcontrol being containers by Man-wai

Man-wai
Tue Jul 03 08:08:57 CDT 2007

> so there is no "special" behaviour of the grid ;-)

I am using my own framework, but I don't re-call re-defining the down/up
arrow key in my classes. It could be a problem of focus, but I have yet
to figure out the problem.

--
@~@ Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org
/ v \ Simplicity is Beauty! May the Force and Farce be with you!
/( _ )\ (Xubuntu 7.04) Linux 2.6.21.5
^ ^ 21:08:01 up 15 days 10:40 0 users load average: 0.06 0.03 0.00
news://news.3home.net news://news.hkpcug.org news://news.newsgroup.com.hk