


|
|
WD 25 - Layout control
|
| Message envoyé
le
28-12-2024
par
dirkpitt 132416
(Italie)
|
Hello to all
I'm trying to use the Layout Control to create a scrollable form container, that contains about 8 sections. I can add each cell easily and then insert variout edit field and other controls.
What i'm trying to do is: How to position automatically the focus on one of these sections or in the first control inside a specific cell in the layout? I don't know if my problem is clear, but i need something to obtain a sort of automatic scroll of the layout control giving some parameters and execute a "returntocapture" to the first edit control available in this cell.
Thanks in advance
Dirk
| |
| Message envoyé
le
28-12-2024
par
popoy 132419
(France)
|
In french
https://doc.pcsoft.fr/?2026006
In English
https://help.windev.com/?2026006
| |
| Message envoyé
le
28-12-2024
par
popoy 132420
(France)
|
https://doc.pcsoft.fr/?3025039
Et
https://help.windev.com/?3025039
| |
| Message envoyé
le
28-12-2024
par
dirkpitt 132424
(Italie)
|
Hello Popoy
Sorry, but your suggestions are not useful because, yes, i know how to put a sequential input order on the controls using TabOrder, but it is not my problem.
First, i think, i could resolve my issue using only the scrollbar of the Layout Control, but as i know it can't be used programmatically.
I need to jump to some section in the Layout Control.
The ScreenFirst (control_name) should be useful if the Layout Control show you the section where is located the control in focus, applying a sort of scroll until the control is shown at the top of Layout.
So, i think the last solution could be to scroll the contents of the Layout control, until a scroll value (position) where to jump.
Hope to have explained well my problem.
Thanks
Dirk
| |
| Message envoyé
le
30-12-2024
par
Jackson 132442
(Bosnie)
|
Hello Dirkpit
If I understood you well, see this video. I create this simple layout and try code in video and it work.
VIDEO
PROCEDURE MyLayout_Scroll()
RESULT ScrollbarPosition(LAYOUT_Test)
| |
| Message envoyé
le
06-01-2025
par
dirkpitt 132495
(Italie)
|
Hello Jackson
Sorry, but for no pc use in this end of year for vacations, i'm not able to see your example.
Please, can you re-post this video??
Thanks
| |
| Message envoyé
le
06-01-2025
par
Jackson 132496
(Bosnie)
|
@dirkpitt
You already see that on another forum. ;)
| |
| Message envoyé
le
07-01-2025
par
dirkpitt 132503
(Italie)
|
Hi Jackson...
Yes, i was thinking for another video, not the same on the other forum.
Thanks, anyway
Dirk
| |
|