Jump to content

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Find out more here. X
X


Photo

Menu will not respond to events with tab control


  • Please log in to reply
1 reply to this topic

#1 ryeguy

ryeguy

    Wayfarer

  • Active Members
  • Pip
  • 78 posts

Posted 07 June 2009 - 01:37 AM

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?







#2 ryeguy

ryeguy

    Wayfarer

  • Active Members
  • Pip
  • 78 posts

Posted 07 June 2009 - 01:43 AM

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.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users