Welcome! Log In Create A New Profile

Advanced

[Solved] Tab page - to make a tabpage as active

Posted by sivakrith 
[Solved] Tab page - to make a tabpage as active
September 29, 2021 09:26AM
Hello,
Using Windev 22

In a window, there are about 4 tab panes in a tab control. When I open the window for the first time, I see the control inside the first tab panes. OK, that's perfect.

After entering data (and of course, saving the data), in all the 4 tab panes I want to make the first tab-pane to be 'active' or 'visible', so that through a code in some event.

Is it possible to make the first pane active, by code ? I tried going through the help, but couldn't find out the command, if any, is available.

Happiness Always
BKR Sivaprakash



Edited 1 time(s). Last edit at 09/30/2021 07:23AM by sivakrith.
Re: Tab page - to make a tabpage as active
September 29, 2021 09:45AM
Hi,

Lets say the Tab name is Tab1.
Code with: Tab1 = 1 // 1 because you want to return to 1st pane.
In order to make it active code: Tab1..State = Active

Regards

Vassilis Boutsikas



Edited 1 time(s). Last edit at 09/29/2021 09:46AM by Vassilis.
Re: Tab page - to make a tabpage as active
September 29, 2021 09:49AM
Hi, to show the first Tab of an unnamed Tab-control

Tab1 = 1

[help.windev.com]

Kind regards,
Guenter Predl
office@windev.at
[Solved] Re: Tab page - to make a tabpage as active
September 30, 2021 07:22AM
Thanks, Guenter Predl, Vassilis Boutsikas.

Tab1 = 1 is working.

Guenter,
I was going through the same help page that you have sent. Somehow it didn't click me this syntax though I tried various combinations. Thanks.
Re: [Solved] Re: Tab page - to make a tabpage as active
September 30, 2021 07:42AM
Hi, the interesting part is that there are so many things in WINDEV which can be done with surprisingly little effort!

Kind regards,
Guenter Predl
office@windev.at
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: