|
|
|
|
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 |
|
Alfonso Bastias
|
Mar 16, 2006 - 11:14 AM
|
Is there any way to lock and unlock the toolbars (to avoid or allow changin in the toolbars at runtime). Similar, for example, to the Quick Launch in Windows XP... righ click on the taskbar (popup menut "lock taskbar". Thanks
|
|
Technical Support
|
Mar 17, 2006 - 1:28 AM
|
Prof-UIS toolbars are similar to those in Microsoft Office and Visual Studio .NET/2005, which cannot be locked. But you can make a lockable toolbar by using a CExtMenuControlBar -derived or CExtToolControlBar -derived class. In this class, lock some virtual functions of Prof-UIS control bar: extern bool g_bLockBars = . . .
class CMyLockAbleToolBar : public CExtToolControlBar
{
public:
virtual void _DraggingStart(
const CPoint & point,
const CPoint & pointOffset = CPoint( 0, 0 ),
CSize sizeWaitMouseMove = CSize( 1, 1 )
)
{
if( g_bLockBars || IsFloating() )
return;
CExtToolControlBar::_DraggingStart(
point,
pointOffset,
sizeWaitMouseMove
);
}
virtual void ToggleDocking()
{
if( g_bLockBars || IsFloating() )
return;
CExtToolControlBar::ToggleDocking();
}
};
|
|