statusbar stops responding |
Post Reply |
Author | |
leojay
Groupie Joined: 07 March 2005 Status: Offline Points: 27 |
Post Options
Thanks(0)
Posted: 22 May 2008 at 5:03am |
i'm using c#.
in a very simple project, i just add a statusbar in the main form like this:
if i press the thumb of the slider, and drag it left and right for about one minute, the slider will stop responding any events. you can get my project and screenshot here: http://python.leojay.googlepages.com/sbtest.zip btw, another strange thing is in the SliderPaneClick function, the value of parameter command could be 8 which does not exist in the definition of XtremeCommandBars.XTPSliderCommand. |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
its .NET - you never know when object will be destroyed. :) So just move StatusBar declaration to variables of Form:
XtremeCommandBars .StatusBar sb; private void Form1_Load(object sender, EventArgs e){ sb = CommandBars.StatusBar; .... |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
leojay
Groupie Joined: 07 March 2005 Status: Offline Points: 27 |
Post Options
Thanks(0)
|
thanks, it works.
but i'm still not convinced by your explanation. how could the statusbar be GCed, when it's still referenced by "CommandBars"? |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hello,
Its ActiveX control. line
XtremeCommandBars.StatusBar sb = CommandBars.StatusBar;
creates temporary object sb that become wrapper of StatusBar COM Object. it will be destroyed after method leave scope and Garbage collection decide to clean dead objects.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
leojay
Groupie Joined: 07 March 2005 Status: Offline Points: 27 |
Post Options
Thanks(0)
|
thanks.
in the SliderPaneClick function, the value of parameter command could be 8 which does not exist in the definition of XtremeCommandBars.XTPSliderCommand. what's the meaning of 8? |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
HI,
We added XTP_SB_ENDSCROLL for next release - fired when user release mouse after scroll.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |