Hi, I'm using TabManager and i would like to know which tab is active. I didn't found any methods for that. Any clue ? In UIPainter, i will use it to know which tab canvas i have to generate. Thanks :) -- Best regards, Douaille Erwan <douaille.erwan@gmail.com>
A workaround could be that when a tab is selected, it set an instance variable with the correct value. This way , you can always do something like myCanvas generates. where myCanvas is set by the tab. And in addition, you do not have to use a switch case :) Ben On Aug 26, 2013, at 3:58 PM, Erwan Douaille <douailleerwan@gmail.com> wrote:
Hi,
I'm using TabManager and i would like to know which tab is active. I didn't found any methods for that. Any clue ?
In UIPainter, i will use it to know which tab canvas i have to generate.
Thanks :)
-- Best regards,
Douaille Erwan <douaille.erwan@gmail.com>
2013/8/26 Benjamin <benjamin.vanryseghem.pharo@gmail.com>
A workaround could be that when a tab is selected, it set an instance variable with the correct value.
Yes, it will be cool. But i didn't *find* something like "whenTabSelectionChanged:" in tabManager or tab model. How can i catch the selection event?
This way , you can always do something like
myCanvas generates.
where myCanvas is set by the tab. And in addition, you do not have to use a switch case :)
yes
Ben
On Aug 26, 2013, at 3:58 PM, Erwan Douaille <douailleerwan@gmail.com> wrote:
Hi,
I'm using TabManager and i would like to know which tab is active. I didn't found any methods for that. Any clue ?
In UIPainter, i will use it to know which tab canvas i have to generate.
Thanks :)
-- Best regards,
Douaille Erwan <douaille.erwan@gmail.com>
Thanks :) -- Best regards, Douaille Erwan <douaille.erwan@gmail.com>
I thought there was such a registration method :s Ben On Aug 27, 2013, at 11:25 AM, Erwan Douaille <douailleerwan@gmail.com> wrote:
2013/8/26 Benjamin <benjamin.vanryseghem.pharo@gmail.com> A workaround could be that when a tab is selected, it set an instance variable with the correct value.
Yes, it will be cool. But i didn't find something like "whenTabSelectionChanged:" in tabManager or tab model. How can i catch the selection event? This way , you can always do something like
myCanvas generates.
where myCanvas is set by the tab. And in addition, you do not have to use a switch case :)
yes Ben
On Aug 26, 2013, at 3:58 PM, Erwan Douaille <douailleerwan@gmail.com> wrote:
Hi,
I'm using TabManager and i would like to know which tab is active. I didn't found any methods for that. Any clue ?
In UIPainter, i will use it to know which tab canvas i have to generate.
Thanks :)
-- Best regards,
Douaille Erwan <douaille.erwan@gmail.com>
Thanks :)
-- Best regards,
Douaille Erwan <douaille.erwan@gmail.com>
participants (2)
-
Benjamin -
Erwan Douaille