We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How to disable XPTaskBarBox animation ?

Thread ID:

Created:

Updated:

Platform:

Replies:

23634 Jan 17,2005 02:21 AM Jun 17,2005 02:46 PM Windows Forms 7
loading
Tags: Tools
david martin
Asked On January 17, 2005 02:21 AM

How can i disable the XPTaskBarBox animation on "Enter" Key press ? I juste want the box stay dropdown !

Administrator [Syncfusion]
Replied On January 17, 2005 11:31 AM

Hi David, I''m having trouble understanding exactly what you''re asking. Do you want to disable the animation and have the XPTaskBarBox collapse immediately, or do you want to prevent the XPTaskBarBox from collapsing at all? Regards, Gregory Austin Syncfusion, Inc.

david martin
Replied On January 18, 2005 01:37 AM

Hi Greg, I have a form with three XPTaskBarBox with various controls like AdvTabs, Grid, Combo... In design Mode my XPTaskBarBox properties are : Collapsed = "False" , ShowCallapseButton = "False" When my form is open and the focus is on a XPTaskBarBox, i don''t want user could change the XPTaskBarBox collapse state by pressing the "spacebar" or "Enter" Key. Thanks, David. >Hi David, > > I''m having trouble understanding exactly what you''re asking. Do you want to disable the animation and have the XPTaskBarBox collapse immediately, or do you want to prevent the XPTaskBarBox from collapsing at all? > >Regards, >Gregory Austin >Syncfusion, Inc.

Administrator [Syncfusion]
Replied On January 18, 2005 01:14 PM

Hi David, To create an XPTaskBarBox that can''t be collapsed, you can extend the class. Then all you have to do is override ToggleContentVisibility(bool) to do nothing. The following code snippet demonstrates this. internal class NoCollapseXPTaskBarBox : Syncfusion.Windows.Forms.Tools.XPTaskBarBox { protected override void ToggleContentVisibility(bool a) { } } I hope this meets your requirements. Regards, Gregory Austin Syncfusion, Inc.

david martin
Replied On January 19, 2005 06:13 AM

Hi Greg, It''s ok, thank you for your help. David

River Phoenix
Replied On June 17, 2005 02:42 PM

Depending on what you''re doing, you might also be able to just set ShowCollapseButton = false and also FocusOnClick = false to prevent it from taking focus to enable enter/spacebar affecting it to begin with.

River Phoenix
Replied On June 17, 2005 02:43 PM

And TabStop = false, of course.

River Phoenix
Replied On June 17, 2005 02:46 PM

My own question is: how can the animation be set so that the previous animation doesn''t flicker when the user tries to toggle it again while it''s already in the middle of an animation. As it is by default, the previous animation jumps to finish instantaneously before the new one begins. I would want it to just change direction in the middle.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;