|
|
|
|
Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Marcus Gebler
|
Oct 19, 2005 - 1:31 PM
|
Hello everybody My application supports a configuration mode and a runtime mode. The layout of the application (psoition and docking of the controlbars) is made in the configuration mode. For unexperienced users it should not be possible to change the layout. How can I prevent, that these user drag a control bar and changes the layout. With best regards Marcus
|
|
Marcus Gebler
|
Oct 20, 2005 - 3:31 PM
|
Not bad so far, but this solution doesn’t work, if the ControlBar ist docked into a tab container. Is it also possible "lock" the tab container ? With best regards Marcus
|
|
Technical Support
|
Oct 21, 2005 - 9:43 AM
|
In the Prof-UIS 2.43 or earlier, you had to code your own tabbed container (a simple class derived from the CExtDynTabControl bar class) to change its behavior. In 2.50 we have added more handy virtual methods that lock resize and drag-and-drop. Could you wait a bit (we are about to release 2.50)? You will be even able to get what you need with one line of code: CExtControlBar::g_bLockAllBars = true;
|
|
Technical Support
|
Oct 20, 2005 - 10:40 AM
|
You can use your own classes derived from the CExtMenuControlBar , CExtToolControlBar , and CExtControlBar classes. Each of them should implement the following internal virtual method of the CExtControlBar class: virtual void _DraggingStart(
const CPoint & point,
const CPoint & pointOffset = CPoint( 0, 0 ),
CSize sizeWaitMouseMove = CSize( 1, 1 )
)
{
if( user is ! experienced )
return;
PARENT_CLASS::_DraggingStart( point, pointOffset, sizeWaitMouseMove );
}
|
|