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 » Questions with autohidemode Collapse All
Subject Author Date
Cyril Chevalier Jun 15, 2004 - 3:40 AM

Hi,


I have made an application that uses the auto hide control bar feature. When the mouse is over a tab in the auto hide area, the corresponding control bar appears.


Is it possible to change the delay of apparition of the control bar ?  And is it possible to enable the apparition of the control bar when the user click on the tab?


Thank you for your help.

Cyril Chevalier Jun 15, 2004 - 8:52 AM

Hi again,


Finally I’ve found a solution. In my initialization code for my main frame I’ve had this:


CExtDockOuterBar* wnd = (CExtDockOuterBar*)(m_pMainFrame
                                       ->GetDescendantWindow(AFX_IDW_DOCKBAR_LEFT));
 if (wnd!=NULL){
  CExtTabWnd* tab = (CExtTabWnd*)(wnd->_GetAutoHideArea());
  tab->ModifyTabWndStyle(__ETWS_HOVER_FOCUS,0,true);
 }

Technical Support Jun 15, 2004 - 10:22 AM

Dear Cyril,

First of all, your solution is OK. As for the animation speed of the autohide window, you can use the following static members of the CExtControlBar class to control it:


  • static bool g_bDisableAutoHideAnimationExpanding; // enables/disables expanding slide animation effect


  • static bool g_bDisableAutoHideAnimationCollapsing; // enables/disables collapsing slide animation effect

  • static INT g_nAutoHideAnimationStepCount; // number of steps in the slide animation

  • static INT g_nAutoHideAnimationStepTime; // time of each step, in milliseconds