ryeguy Posted June 7, 2009 Posted June 7, 2009 This is a weird problem..it seems like it may be a bug but I'd just like to make sure before I report it. It could just be some stupid mistake. Anyway, in my app I have a GUI window with a menu and a tab control with 2 tabitems. If both the tab control and the menu exist at the same time, the menu will not send out any events at all when it is clicked. I have tried with both event mode and guigetmsg() mode. I know that code would help, but really, it is as simple of a problem as I make it sound. If I comment out the line: $tabs = GUICtrlCreateTab(4, 48, 260, 257) My menu works perfectly and properly fires events. If I uncomment it, then the menu stops working. The end. There is no other complexity to this, and that's why this problem is so strange to me. Am I missing something basic? Can you just not use these 2 controls together for some reason?
ryeguy Posted June 7, 2009 Author Posted June 7, 2009 I really don't know why this works, but my previous code looked like this: make gui make tab ctrl make menu hook up events show gui Now, when I simply rearrange my code to this, it works: make gui make tab ctrl show gui make menu hook up events I don't know why, but it does. Whatever.
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