geasiki Posted August 22, 2009 Share Posted August 22, 2009 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 whichtab-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. >_< Link to comment Share on other sites More sharing options...
qazwsx Posted August 22, 2009 Share Posted August 22, 2009 Here.Tab The number or the controlID of the tabitem selected depending of the advanced parameter value.Does that work? Link to comment Share on other sites More sharing options...
geasiki Posted August 23, 2009 Author Share Posted August 23, 2009 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. Link to comment Share on other sites More sharing options...
geasiki Posted August 23, 2009 Author Share Posted August 23, 2009 Hmm. I used "_GUICtrlTab_GetCurFocus" Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now