experchange > axapta.* > axapta.programming

Anna Petersen (02-22-07, 07:22 PM)
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 (02-22-07, 10:17 PM)
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 for example (applyChanges method)

22.02.07 в 20:22 Anna Petersen в своём письме писал(а):
[..]
Anna Petersen (02-22-07, 11:12 PM)
I get a compiler error that the macro does not exist.

"Max Belugin" wrote:
[..]
Anna Petersen (02-23-07, 12:37 AM)
Figured it out. I can get the active page name from the following:

activeTabIndex = control.tab();
activePage = tabControl.controlNum(tabIndex);
activePageName = activePage.name();

"Anna Petersen" wrote:
[..]
Max Belugin (02-24-07, 10:34 PM)
#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)

23.02.07 в 00:12 Anna Petersen в своём письме писал(а):
Max Belugin (02-24-07, 10:35 PM)
Unfortunately in my case in becomes to do not work after upgrading to Ax
3.0 KR3

23.02.07 в 01:37 Anna Petersen в своём письме писал(а):
[..]
n.ftimah (07-17-18, 10:31 AM)
Dear Anna,
On what node should i declare activetabindex,activepage,activepagename for?

thanks in advanced !