AcidCorps Posted August 6, 2007 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?
Generator Posted August 6, 2007 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
AcidCorps Posted August 6, 2007 Author Posted August 6, 2007 Thanks so how would I use buttons, create OnEvent's for each?
AcidCorps Posted August 6, 2007 Author Posted August 6, 2007 I ran into a problem, when I go to uncheck the checkbox it says $Tab is undeclaired
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