static void TEST_HideContentFrame(Args _args)
{
#WinApi
HWND contentPane = WinApi::findWindowEx(
WinAPI::findWindowEx(infolog.hWnd(), 0, 'MDIClient', ''),
0,
'ContentFrame',
''
);
;
if (contentPane)
WinApi::ShowWindow(contentPane, #SW_HIDE);
}
Microsoft Dynamics Ax developer's blog
Tuesday, July 01, 2008
How to hide Content Pane in Ax 2009
Here is a small job, which hides content pane in Dynamics Ax 2009. Content pane can be useful for end users, but when you develop something in can be irritating to see it oon top of all windows every time you click on menu item. So here is a small solution. I plan to add this feature to the future Tabax for Ax 2009
Labels:
Ax2009,
Content Pane
Subscribe to:
Post Comments (Atom)
2 comments:
The Content Pane will appear again if current company changed. To prevent this one can easily replace WinApi::ShowWindow(contentPane, #SW_HIDE); with WinApi::destroyWindow(contentPane);
There's a another, non programmaticly but really easy way to hide the content form:
Open any formlist page (like Accounts receivable/Places/Customers). After that just press Ctrl+Q - that's all :)
BTW: Do you already heard about this tool? http://www.smartstart3000.luegisdorf.ch a must for every AX programmer.
Post a Comment