AcidCorps Posted August 6, 2007 Share Posted August 6, 2007 ok my code is way to long to post so I'll just post the part that mattersFirst Question:I have the fallowing codeGuiCtrlSetOnEvent($MyCheck, "Create") Func Create() GuiCtrlCreateTabItem("MyTab") EndFuncoÝ÷ Úz0¶¬Âä±ìz_¢½m)৶ç$nb²éÜç$yØr·µë±ç(ÛZnv¦yÚ®¢Ó2M¦êºZØrçZ¨§Þ·^rÛ("wvÚ&jG¢¶Ê0éâ·lrØ^µ¦â±ÊÞj׶§Â§Ýý²éÜç$yØßÛzWyÖÒyÊ'u²Ø¨öí+(è¬jX¶W¦¢·¨}©ÞÁ¸ªç¬¶*'¦ºi¹r"{az¥¥ø¥z+lk+"}«¢+Ù=ÁÐ ÅÕ½ÐíU%=¹Ù¹Ñ5½ÅÕ½Ðì°Ä¤GUIGetMsg is NOT used at allis there a way to use both? or what's the usual work around for this? Link to comment Share on other sites More sharing options...
Generator Posted August 6, 2007 Share Posted August 6, 2007 Simple, after you called the function, add these codes in it, it would be like thisYou cannot use bothGuiCtrlSetOnEvent($MyCheck, "Create") Func Create() If GUICtrlRead($MyCheck)=$GUI_CHECKED Then $Tab=GuiCtrlCreateTabItem("MyTab") Else GUICtrlDelete($Tab) EndIf EndFunc Link to comment Share on other sites More sharing options...
AcidCorps Posted August 6, 2007 Author Share Posted August 6, 2007 Thanks so how would I use buttons, create OnEvent's for each? Link to comment Share on other sites More sharing options...
AcidCorps Posted August 6, 2007 Author Share Posted August 6, 2007 I ran into a problem, when I go to uncheck the checkbox it says $Tab is undeclaired Link to comment Share on other sites More sharing options...
Generator Posted August 6, 2007 Share Posted August 6, 2007 Global $Tab 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