Professional UI Solutions
Site Map   /  Register
 
 

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.

Forums » Prof-UIS General Discussion » CExtControlBar not dragable Collapse All
Subject Author Date
Varun Verma Jan 3, 2012 - 11:09 PM

I created an object of CExtControlBar class and linked a dialog with it. now i do not want the dialog to be dragable what should i do. I am using 2.93 version of ProfUIS.

Technical Support Jan 12, 2012 - 2:58 AM

The CExtControlBar::_DraggingStart() virtual method can be overridden using Prof-UIS 2.85.
The CExtControlBar::ToggleDocking() virtual method is invoked when you double click the caption or gripper of a control bar.

Technical Support Jan 4, 2012 - 4:39 AM

Please create and use your own CExtControlBar-derived class which implements the following virtual method:

virtual void _DraggingStart(
        const CPoint & point,
        const CPoint & pointOffset = CPoint( 0, 0 ),
        CSize sizeWaitMouseMove = CSize( 1, 1 )
        )
{
}

Your method should do nothing. It should not even invoke the parent class method. This will prevent the control bar from drag-n-dropping and the user will not be able to drag it into floating state.

Varun Verma Jan 4, 2012 - 5:16 AM

Thanks for support


we were not able to drag the dialog in 2.85 version of PROFUIS so did u added this feature in 2.93 version. And what is the function for double click for CExtControlBar??