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 Tech Support » Hiding control bar on Esc pressing Collapse All
Subject Author Date
Maxim Tebenev Mar 18, 2007 - 11:37 PM

Hi Guys,

Is there a way to hide control bars by pressing Esc button like in Visual studio (that should work if control bar is in auto-hide mode)?

Best regards, Maxim.

Vincent Lin Apr 19, 2007 - 1:00 AM

Hello,

Is there a way to hide a auto-hide mode CExtControlBar when it is in active (or visiable) ?
thanks.

Technical Support Apr 19, 2007 - 5:47 AM

Although the window displayed from the grouped auto-hide tabs with sliding animation effect is not a control bar, it looks like a control bar. This window is called auto-hide slider and the child window of your control bar is temporarily moved into the auto-hide slider window when the latter needs to be displayed. So you should catch the keyboard event in the child control created inside the control bar, get control’s parent window (this will be auto-hide slider) and send the WM_CANCELMODE message to this parent auto-hide slider window.

Technical Support Mar 19, 2007 - 8:53 AM

We added this feature but actually we have not found the way you can hide control bars with ESC in Visual Studio .NET 2003 and Visual Studio 2005have. Please contact us via email if need the updated code right away. You can turn on this feature by setting CExtControlBar::m_bAutoHideDeactivateOnEsc to true, which is false by default.

Maxim Tebenev Mar 19, 2007 - 2:14 PM

Thanks guys!

I will wait till the next release of Prof-UIS to avoid much code merging.
This feature works in VS 2003 when some source file is open and control bar has auto-hide mode on.
For example, I press Ctrl+L to pop up Solution Explorer window and Esc to hide it back.

Best regards, Maxim.