Ask Your Question
0

how to create a form with sections

asked 2019-11-12 16:25:08 +0100

ptux gravatar image

I'd like to add sections in a form and use buttons to switch from a section to an other.

Supposing to have a form called FORMULARIO and 4 sections called UNO, DUE, TRE and QUATTRO, how do i make it work?

Searching in the internet i found this macro and seems to be similar to what i need, but it was not provided of comments and so, i don't know how to custumize it, nor i'm able in write a macro by myself.

Any help?

sub PysAfficher(PysEvent)
dim i as integer
for i = 0 to thiscomponent.TextSections.count - 1
if thiscomponent.TextSections(i).name = PysEvent.Source.Model.Name then
thiscomponent.TextSections(i).IsVisible = true
else
thiscomponent.TextSections(i).IsVisible = false
PysEvent.Source.Model.parent.getByName(thiscomponent.TextSections(i).name).state = 0
end if
next i
end sub

Thanks in advance to anybody will help me.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2019-11-12 17:11:31 +0100

Ratslinger gravatar image

Hello,

It is necessary to have some understanding of macros to do this. The method for sections is fairly simple - isVisible = true shows the section and isVisible = false hides the section.

Please see this post -> Tabbed forms within a Main Form. In the answer is a sample. The simple macros are run by push buttons.

It contains three sections - Main, Employee and Title. You should be able to add a fourth and rename what is there. Hopefully this will get you started.

There is also a link to another answer there which contains another different but more complex sample.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2019-11-12 16:25:08 +0100

Seen: 35 times

Last updated: Nov 12