Kickassjoe Posted May 6, 2007 Share Posted May 6, 2007 I know Gary has a post on this topic, but I can't find it by searching (maybe I'm wrong, or just using the wrong words). Could someone point me in the right direction (to Gary's post, or helpful things of your own)? Also, I made images that I needed to control that were on all children, into arrays, and doing so seemed to have not made me able to detect when they are clicked (actually, I probably couldn't have even if they weren't...), and I don't know how to go about trying to detect which of the images is clicked (on which child GUI, or on the Main one). Anyone with some useful pointers, anything would help. Here is the script.../folder w/ images too. NBank.zip What goes around comes around... Payback's a bitch. Link to comment Share on other sites More sharing options...
smashly Posted May 7, 2007 Share Posted May 7, 2007 (edited) Hi, Sorry I'm not much help when it comes to the multiple gui's being run from the same script. Don't know if this will help... To get the array ctrl id of the picture so you can tell when it's clicked, example:#include <GUIConstants.au3> Global $tab[10], $TabChild[10] $MainGUI = GUICreate("", 515, 335, 0, 0, $WS_POPUP + $WS_SYSMENU + $WS_CAPTION) GUISetBkColor(0x463D32) GUISetFont(9) _GUICtrlCreateTabCtrls(10) GUISetState() For $tc = 0 To 9 $TabChild[$tc] = 'You Have clicked Tab ' & $tc + 1 & @LF & 'Tab Control: $tab[' & $tc & ']' Next While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Exit EndSelect For $t = 0 To 9 Select Case $msg = $tab[$t] MsgBox(0,'Tab Clicked..', $TabChild[$t]) EndSelect Next WEnd Func _GUICtrlCreateTabCtrls($z) ;tabs below $xi = 15 For $i = 0 To 9 $tab[$i] = GUICtrlCreatePic("Images/tab.bmp", $xi, 37, 45, 27, $GUI_SS_DEFAULT_PIC, $WS_EX_TOPMOST) $xi = $xi + 49 Next EndFunc Edited May 7, 2007 by smashly Link to comment Share on other sites More sharing options...
Kickassjoe Posted May 7, 2007 Author Share Posted May 7, 2007 I kind of wanted to load all of the tabs before the program ran... but now that I think of it, it really doesn't matter much for what I'm doing. I guess I will get started doing that, after I finish some homework. Thanks for making me realize that. What goes around comes around... Payback's a bitch. 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