Sign in to follow this  
Followers 0

Menu will not respond to events with tab control

2 posts in this topic

Posted

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?

Share this post


Link to post
Share on other sites



Posted

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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0