Jump to content

Recommended Posts

Posted

Hi, I was wondering if this was possible.

I have a few tab-items and a button outside of the tabwindow(on the main form)

What I would like to happen is, when I press the button a function would read which

tab-window is open and do diffent stuff.

I think I need a Select- case statement but with which expression...

@Gui-ctrlID didn't do it...

Thanks in advence. >_<

Posted

It didn't work, or I didn't do it right... I tried to read(GUICtrlRead)

each tabitem and listview but I only get a 0 for the tabitem and nothing for the

listview even when it's on focus(opend)

What I have is.

$Main = GUICreate
$Button = GUICtrlCreateButton
GUICtrlSetOnEvent($Button1, "_Read")

$Tab1 = GUICtrlCreateTab

$1 = GUICtrlCreateTabItem("1")
$a = GUICtrlCreateListView
$2 = GUICtrlCreateTabItem("2")
$b = GUICtrlCreateListView
$3 = GUICtrlCreateTabItem("3")
$c = GUICtrlCreateListView
$4 = GUICtrlCreateTabItem("4")
$d = GUICtrlCreateListView

Func _ReadFocus()
 Select
   case XX = XX
     
Endfunc

What I want is, when I press the 'button' the '_ReadFocus' function

reads which tabitem or listview is on focus or opened and does different

stuff or each one.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...