Chercher Et Ou Phrase  
Dans:          


Pour les nouveau visiteurs

Entrez ici

Chercher le Forum



 

 Les Forums
  Programmation avancĂ©e
Repondre a ce sujet  

Sujet WD 25 - Layout control
Message envoyé le 28-12-2024 par dirkpitt (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 (France)  
In french
https://doc.pcsoft.fr/?2026006
In English
https://help.windev.com/?2026006

Message envoyé le 28-12-2024 par popoy (France)  
https://doc.pcsoft.fr/?3025039
Et
https://help.windev.com/?3025039

Message envoyé le 28-12-2024 par dirkpitt (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 (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)


Pour répondre à ce message vous devez être membre

Entrée membre    Enregistrer




Retour © 1996-2025 forum.acam.ca