Jump to content
Sign in to follow this  
AustrianOak

How to know when my a certain tab is clicked?

Recommended Posts

AustrianOak

I have a tab and then two tab items on the tab. One says 'Tab1' and the other says 'Tab2'. How can I know when (if at all) 'Tab2' is clicked on so then I can make my own event to respond to that. I already tried Case $msg = $tab2 and soon found out that it didnt work so any help would be extremely appreciated.

Share this post


Link to post
Share on other sites
monoceres

Hi!

The event takes place in the Tab, not the the tab items, and when the event is fired, you can use GUICtrlRead($YOUR_TAB) to get the index (I think) of the tab that was clicked.

:)


Broken link? PM me and I'll send you the file!

Share this post


Link to post
Share on other sites
AustrianOak

Thank you monoceres!

It works greats.

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  

×