PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [WD20] supercontrol is initially positioned at the bottom
[WD20] supercontrol is initially positioned at the bottom
Iniciado por vvido, 13,ene. 2016 11:09 - 2 respuestas
Miembro registrado
94 mensajes
Publicado el 13,enero 2016 - 11:09
I have a RAD generated window with a supercontrol which contains a large number of data fields from a file.

Because there are so many fields and the window is of moderate size, the supecontrol has a vertical scrollbar. This is OK.

When the window is opened, the supercontrol is opened. It displays the bottom part of fields contained in it (not OK).
The user can scroll the up an down (this is Ok), but I would like that after opening the window, the fields on top of supercontrol are displayed.

I have several such windows, but only one works this way. I must have unintentionally changed a setting, but I do not know which.

Please advise !
Publicado el 13,enero 2016 - 12:22
Hi VVido

start by checking the tab order and verify that the top field is the one
having the focus at opening

BEst regards


--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

Ready for you: WXShowroom.com, WXReplication (open source) and now WXEDM
(open source)

More information on http://www.fabriceharari.com


On 1/13/2016 5:09 AM, vvido wrote:
I have a RAD generated window with a supercontrol which contains a large
number of data fields from a file.

Because there are so many fields and the window is of moderate size, the
supecontrol has a vertical scrollbar. This is OK.

When the window is opened, the supercontrol is opened. It displays the
bottom part of fields contained in it (not OK). The user can scroll the
up an down (this is Ok), but I would like that after opening the window,
the fields on top of supercontrol are displayed.

I have several such windows, but only one works this way. I must have
unintentionally changed a setting, but I do not know which.

Please advise !
Miembro registrado
94 mensajes
Publicado el 13,enero 2016 - 14:16
Thanks Fabrice,

I have checked the order, but it is correct, it is the same as in other windows which work correctly.
But following your hint I have put this additional code at the end of window initialization

Reset()
ReturnToCapture(ControlFirst())

With this it works correctly.

Weird. But it is not the first strange thing with WD ...