B4J Question [SOLVED] TabPage RequestFocus

mfstuart

Active Member
Licensed User
Is there a way to request the focus of a TabPage?
Preferably at the time of adding the TabPage, or another way when clicking on a button, request the focus to an existing TabPage.

Thanx,
Mark Stuart
 

mfstuart

Active Member
Licensed User
Hi Daestrum,
Based on my TabPane demo app that you commented on the other day, how would I get the SelectedIndex upon creating the tabpage?
That's the part unknown to me.

Edit: GOT IT - this sets the just created tabpage to be "focused".

B4X:
TabPane1.SelectedIndex = TabPane1.Tabs.Size - 1

Thanx,
Mark Stuart
 
Last edited:
Upvote 0
Top