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 » How to disable smooth Check box changing Collapse All
Subject Author Date
Aleksey Leshchuk Jun 10, 2007 - 4:44 PM

How can I disable smooth Check box changing? This behaviour appeared in the ProfUIS 2.70, in the version 2.54 there wasn’t such problem.

Oliver Burkert Jun 11, 2007 - 9:06 AM

When our program runs on a terminal server, the animation is extremely slow. With your solution, I can switch off all animation, which is exactly what I needed. Thanks!

Oliver Burkert Jun 11, 2007 - 7:23 AM

How can I do the same with a ribbon bar? I overrode CExtRibbonBar::AnimationClient_OnQueryAnimationParameters, but that function never gets called.

Technical Support Jun 11, 2007 - 8:23 AM

If you do the same with the ribbon bar, this will not be similar to the ribbon bar in Office 2007 applications. The AnimationClient_OnQueryAnimationParameters() virtual method is defined in the CExtAnimationClient class, which is the base class for many Prof-UIS classes. It is also the base class for the CExtBarButton class which implements a button in the toolbar, menu bar, ribbon page and ribbon bar. This means each button in these controls has its own specific animation parameters. It is possible to substitute particular button classes, but it will require some work (to define a button class, to define a class factory for the ribbon node). It is easier to disable all the animations at all:

CExtPaintManager::g_DefAnimationParametersNormal = CExtPaintManager::g_DefAnimationParametersEmpty;
CExtPaintManager::g_DefAnimationParametersSlow = CExtPaintManager::g_DefAnimationParametersEmpty;
CExtPaintManager::g_DefAnimationParametersVerySlow = CExtPaintManager::g_DefAnimationParametersEmpty;
Please let us know if this fits your requirements.



Technical Support Jun 11, 2007 - 3:33 AM

You should use the following check box class:

class CPlainCheckBox : public CExtCheckBox
{
public:
      virtual const CExtAnimationParameters * AnimationClient_OnQueryAnimationParameters( INT eAPT ) const
      {
            return (&CExtPaintManager:: g_DefAnimationParametersEmpty);
      }
};