ADAdministrator Syncfusion Team January 17, 2005 11:31 AM
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?
DMdavid martinJanuary 18, 2005 01:37 AM
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.
> 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?
ADAdministrator Syncfusion Team January 18, 2005 01:14 PM
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.
DMdavid martinJanuary 19, 2005 06:13 AM
It''s ok, thank you for your help.
RPRiver PhoenixJune 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.
RPRiver PhoenixJune 17, 2005 02:43 PM
And TabStop = false, of course.
RPRiver PhoenixJune 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.