Wednesday, April 13, 2016

HOW TO ADD CURRENT PROFILE NAME TO THE WINDOW TITLE

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) ));
}

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...