Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Get active tab page

962 views
Skip to first unread message

Anna Petersen

unread,
Feb 22, 2007, 12:22:38 PM2/22/07
to
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

unread,
Feb 22, 2007, 3:17:02 PM2/22/07
to
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)


22.02.07 в 20:22 Anna Petersen в своём письме писал(а):

--
http://axcoder.blogspot.com
http://belugin.info/sidax - freeware sidebar for Axapta (Dynamics Ax)

Anna Petersen

unread,
Feb 22, 2007, 4:12:00 PM2/22/07
to
I get a compiler error that the macro does not exist.

Anna Petersen

unread,
Feb 22, 2007, 5:37:03 PM2/22/07
to
Figured it out. I can get the active page name from the following:

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

Max Belugin

unread,
Feb 24, 2007, 3:34:10 PM2/24/07
to
#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 в своём письме писал(а):

> I get a compiler error that the macro does not exist.

--

Max Belugin

unread,
Feb 24, 2007, 3:35:29 PM2/24/07
to
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.ft...@gmail.com

unread,
Jul 17, 2018, 4:31:34 AM7/17/18
to
Dear Anna,
On what node should i declare activetabindex,activepage,activepagename for?

thanks in advanced !
0 new messages