Professional UI Solutions
Site Map   /  Register


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 » How to disable Dockable bar? Collapse All
Subject Author Date
Anil Siddhpura Jul 28, 2009 - 5:52 AM


How to disable dockable bar?



Technical Support Jul 29, 2009 - 11:00 AM

If the control bar is auto hidden, the auto hide tabs have one tab item for it. If you move mouse hovers this tab item, the auto-hidden bar appears on the screen. It’s not possible to disable this behavior because the user will not be able to guess why some tab items show auto hidden bars when some other tab items do not show bars.

Anil Siddhpura Jul 29, 2009 - 11:23 PM


So is it possible to hde a perticular tab of dockable bar?

Can i hide/show the tabs?



Technical Support Jul 30, 2009 - 12:44 PM

To hide a tab, you should hide the bar. I.e. you should put the bar into normal non-auto-hidden mode and then hide it.

Technical Support Jul 28, 2009 - 8:43 AM

You should not disable the CExtControlBar windows. They will work incorrectly. Please disable the window created as child of the CExtControlBar window. You can additionally override the following virtual method in your CExtControlBar-derived class:

 virtual void OnGetBarCaptionText(
            e_bar_caption_text_t eBCT,
            CExtSafeString & strCaptionText
            ) const;

Your method should invoke the parent class method, check whether the bar is in the disabled mode or whether its child window is disabled and add the _T(" - disabled") text to the strCaptionText string. As result, if the bar caption is Some Text, then its disabled caption will be Some Text - disabled.

Anil Siddhpura Jul 29, 2009 - 12:03 AM


What i have done....

I have not derived any class from CExtControlBar, i have just created some object of CExtControlBar. And there are some other class of my Dialog which are derived from CExtResizableDialog. Now these dialog are created as a chield of CExtControlBar’s object, so it become a dockable bar.

Now, at some point of time, i want that dockable window should not come out when i move cursor to it. So is it possible to disable it or disable that dialog? or is it possible that when i move my cursor to that dockable bar, it should not come out.