Workspace tabs
Posted
#1
(In Topic #1448)
Administrator



As you can see on opening the TabPanel form, the first tab is selected and shown on top.
When opening the Workspace form, the last tab is selected and shown on top.
My problem:
On the Workspace form I want the first tab (Form One) as first tab and also as selected and on top (just like with the TabPanel).
I have been wrestling with this now for several days, but can't figure out how to select Form One tab on opening, other than adding Form One as last to the Workspace, but then the tab order is wrong.
Code for Workspace form is as follows:
I added the source archive with application in above screenshot.
gbWilly
- Gambas Dutch translator
- Gambas wiki content contributor
- Gambas debian/ubuntu package recipe contributor
- GambOS, a distro for learning Gambas and more…
- Gambas3 Debian/Ubuntu repositories
… there is always a Catch if things go wrong!
- Gambas Dutch translator
- Gambas wiki content contributor
- Gambas debian/ubuntu package recipe contributor
- GambOS, a distro for learning Gambas and more…
- Gambas3 Debian/Ubuntu repositories
… there is always a Catch if things go wrong!
Posted
Regular

Posted
Administrator



I knew it would be something easy, been fiddling on and off, trying, reading wiki, trying…thatbruce said
Just use
Workspace1.ActiveWindow = hForm1
I was thinking to complex, more along the lines of below, but then to activate the tab instead of make it disappear.
Code (gambas)
Never even thought about ActiveWindow although it passed a 1000 times…
Thanks Bruce
gbWilly
- Gambas Dutch translator
- Gambas wiki content contributor
- Gambas debian/ubuntu package recipe contributor
- GambOS, a distro for learning Gambas and more…
- Gambas3 Debian/Ubuntu repositories
… there is always a Catch if things go wrong!
- Gambas Dutch translator
- Gambas wiki content contributor
- Gambas debian/ubuntu package recipe contributor
- GambOS, a distro for learning Gambas and more…
- Gambas3 Debian/Ubuntu repositories
… there is always a Catch if things go wrong!
1 guest and 0 members have just viewed this.


