How to add current profile name to the window title
Info class. Expand the method workspaceWindowCreated and add the following code. Next time you start axapta, your profile name will be part of the axapta window title.
void workspaceWindowCreated(int _hWnd)
{
// Put workspace window specific initialization here.
// -- START 070307 FourOne/HL (EnvironmentAddOns4)
session s=new Session();
;
WinAPI::setWindowText(_hWnd, strFmt("%1 - %2 - %3",
xInfo::configuration(),
s.userId(),
WinAPI::getWindowText(_hWnd) ));
}
Info class. Expand the method workspaceWindowCreated and add the following code. Next time you start axapta, your profile name will be part of the axapta window title.
void workspaceWindowCreated(int _hWnd)
{
// Put workspace window specific initialization here.
// -- START 070307 FourOne/HL (EnvironmentAddOns4)
session s=new Session();
;
WinAPI::setWindowText(_hWnd, strFmt("%1 - %2 - %3",
xInfo::configuration(),
s.userId(),
WinAPI::getWindowText(_hWnd) ));
}
No comments:
Post a Comment