Discussion:
Get active tab page
(too old to reply)
Anna Petersen
2007-02-22 17:22:38 UTC
Permalink
I want to get the active tab page from a FormTabControl. I tried using
getActivePage() but this does not seem to change when the page does. Any
suggestions?

Thanks! :)

Anna Petersen
Max Belugin
2007-02-22 20:17:02 UTC
Permalink
I am using the following function

boolean tabIsSelected(FormTabPageControl _page)
{
return this.tabIndex(_page) ==
WinApi::sendMessageEx(this.getParent(_page.hWnd()), #TCM_GETCURSEL, 0,
0);
}

see http://axaptapedia.com/tabax for example (applyChanges method)
Post by Anna Petersen
I want to get the active tab page from a FormTabControl. I tried using
getActivePage() but this does not seem to change when the page does. Any
suggestions?
Thanks! :)
Anna Petersen
--
http://axcoder.blogspot.com
http://belugin.info/sidax - freeware sidebar for Axapta (Dynamics Ax)
Anna Petersen
2007-02-22 21:12:00 UTC
Permalink
I get a compiler error that the macro does not exist.
Post by Max Belugin
I am using the following function
boolean tabIsSelected(FormTabPageControl _page)
{
return this.tabIndex(_page) ==
WinApi::sendMessageEx(this.getParent(_page.hWnd()), #TCM_GETCURSEL, 0,
0);
}
see http://axaptapedia.com/tabax for example (applyChanges method)
Post by Anna Petersen
I want to get the active tab page from a FormTabControl. I tried using
getActivePage() but this does not seem to change when the page does. Any
suggestions?
Thanks! :)
Anna Petersen
--
http://axcoder.blogspot.com
http://belugin.info/sidax - freeware sidebar for Axapta (Dynamics Ax)
Anna Petersen
2007-02-22 22:37:03 UTC
Permalink
This post might be inappropriate. Click to display it.
Max Belugin
2007-02-24 20:35:29 UTC
Permalink
Unfortunately in my case in becomes to do not work after upgrading to Ax
3.0 KR3
Post by Anna Petersen
activeTabIndex = control.tab();
activePage = tabControl.controlNum(tabIndex);
activePageName = activePage.name();
Post by Anna Petersen
I get a compiler error that the macro does not exist.
Post by Max Belugin
I am using the following function
boolean tabIsSelected(FormTabPageControl _page)
{
return this.tabIndex(_page) ==
WinApi::sendMessageEx(this.getParent(_page.hWnd()), #TCM_GETCURSEL,
0,
Post by Max Belugin
0);
}
see http://axaptapedia.com/tabax for example (applyChanges method)
Post by Anna Petersen
I want to get the active tab page from a FormTabControl. I tried
using
Post by Max Belugin
Post by Anna Petersen
getActivePage() but this does not seem to change when the page
does. Any
Post by Max Belugin
Post by Anna Petersen
suggestions?
Thanks! :)
Anna Petersen
--
http://axcoder.blogspot.com
http://belugin.info/sidax - freeware sidebar for Axapta (Dynamics Ax)
--
http://axcoder.blogspot.com
http://belugin.info/sidax - freeware sidebar for Axapta (Dynamics Ax)
n***@gmail.com
2018-07-17 08:31:32 UTC
Permalink
Dear Anna,
On what node should i declare activetabindex,activepage,activepagename for?

thanks in advanced !

Max Belugin
2007-02-24 20:34:10 UTC
Permalink
#define.TCM_FIRST(0x1300)
#define.TCM_GETIMAGELIST(#TCM_FIRST + 2)
#define.TCM_SETIMAGELIST(#TCM_FIRST + 3)
#define.TCM_GETITEMCOUNT(#TCM_FIRST + 4)
#define.TCM_SETITEM(#TCM_FIRST + 6)
#define.TCM_GETITEMRECT(#TCM_FIRST + 10)
#define.TCM_SETITEMSIZE(#TCM_FIRST + 41)
#define.TCM_SETMINTABWIDTH(#TCM_FIRST + 49)
#define.TCM_GETCURSEL(#TCM_FIRST + 11)
#define.TCM_SETCURSEL(#TCM_FIRST + 12)
Post by Anna Petersen
I get a compiler error that the macro does not exist.
--
http://axcoder.blogspot.com
http://belugin.info/sidax - freeware sidebar for Axapta (Dynamics Ax)
Loading...