About Store Forum Documentation Contact



Post Reply 
Getting active tab index
Author Message
Biga Offline
Member

Post: #1
Getting active tab index
hi, I would like get the selected tab index in the called user function.
editor tooltip says that the set attribute is both for set/get, but seems it works as set function, my app is not compiled with tabs.set().
05-29-2014 06:33 PM
Find all posts by this user Quote this message in a reply
SamerK Offline
Member

Post: #2
RE: Getting active tab index
Hi,

Code:
Tabs Mytab;

Mytab(); // will return the selected tab index
(This post was last modified: 05-29-2014 06:55 PM by SamerK.)
05-29-2014 06:53 PM
Find all posts by this user Quote this message in a reply
Biga Offline
Member

Post: #3
RE: Getting active tab index
mhm I have a pointer for that, because I use it from GUI asset.

PHP Code:
Tabs*     tab_mapmodes;
tab_mapmodes = &gui_objs.getTabs("tab_mapmodes");
tab_mapmodes.func(TabChange); 
05-29-2014 07:16 PM
Find all posts by this user Quote this message in a reply
SamNainocard Offline
Member

Post: #4
RE: Getting active tab index
Use (*tab_mapmodes)().
(This post was last modified: 05-29-2014 09:44 PM by SamNainocard.)
05-29-2014 09:44 PM
Find all posts by this user Quote this message in a reply
Biga Offline
Member

Post: #5
RE: Getting active tab index
ah thx.
forgot the () for *.
05-29-2014 09:50 PM
Find all posts by this user Quote this message in a reply
Post Reply