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 » Switch off animations for RibbonBarMDI application /w floating windows possible? Collapse All
Subject Author Date
Oliver Rau Jul 14, 2011 - 10:59 AM

Dear ProfUIS-Team,

our application is based on your RibbonBarMDI and ProfStudio samples, i.e. we’re using a ribbonbar and several floating windows. For normal local use everything’s working fine with animations turned on. But if we’re working e.g. via remote desktop the animations cause some traffic overhead leading to performance issues.

Therefore, would it be possible to easily switch off all (at least most) kind of animations like blending etc. for special applications like these?

Best regards,

Martin

Technical Support Jul 15, 2011 - 3:11 AM

To turn off menu expanding and animations:

CExtPopupMenuWnd::g_bMenuExpanding = false;
CExtPopupMenuWnd::g_bMenuDelayExpanding = false;
CExtPopupBaseWnd::g_DefAnimationType = CExtPopupBaseWnd::__AT_NONE;

To disable menu shadows:
CExtPopupMenuWnd::g_bMenuWithShadows = false;

To make resizable bars using simple old drag-n-dropping algorithm:
CExtControlBar::eResizablePanelDockingType_t CExtControlBar::g_eResizablePanelDockingType
    = CExtControlBar::__RESIZABLE_DOCKING_TYPE_STUDIO_2003;

Finally the most important, to disable all the alpha blending animations everywhere:
CExtPaintManager::g_DefAnimationParametersNormal.AnimationClient_StepCountSet( 0 );
CExtPaintManager::g_DefAnimationParametersNormal.AnimationClient_TimerElapseSet( 0 );
CExtPaintManager::g_DefAnimationParametersSlow.AnimationClient_StepCountSet( 0 );
CExtPaintManager::g_DefAnimationParametersSlow.AnimationClient_TimerElapseSet( 0 );
CExtPaintManager::g_DefAnimationParametersVerySlow.AnimationClient_StepCountSet( 0 );
CExtPaintManager::g_DefAnimationParametersVerySlow.AnimationClient_TimerElapseSet( 0 );

Oliver Rau Jul 18, 2011 - 8:33 AM

Thanks for your help - appreciate your great support!


Martin