Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - howto reduce the frequency of update even
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

howto reduce the frequency of update even

 Post Reply Post Reply
Author
Message
progame View Drop Down
Newbie
Newbie


Joined: 15 July 2004
Location: China
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote progame Quote  Post ReplyReply Direct Link To This Post Topic: howto reduce the frequency of update even
    Posted: 26 December 2005 at 10:22am

howto reduce the frequency of update event?

because i must do some proccessing for get button state, but this event alway be fired so my app make cpu usage very high in some computer .

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 26 December 2005 at 10:49am

May be you can create variable like  bButtonChecked and just call

Control.Checked = bButtonCheck

 

and change bButtonChecked in place where it real changed.

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 28 December 2005 at 1:07pm
If you still need to change frequncy:

CommandBars.Options.UpdatePeriod
Back to Top
progame View Drop Down
Newbie
Newbie


Joined: 15 July 2004
Location: China
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote progame Quote  Post ReplyReply Direct Link To This Post Posted: 28 December 2005 at 8:05pm

can i force to update commandbar?

eg: commandbars1.update

Back to Top
dajv View Drop Down
Groupie
Groupie


Joined: 27 July 2004
Location: Australia
Status: Offline
Points: 80
Post Options Post Options   Thanks (0) Thanks(0)   Quote dajv Quote  Post ReplyReply Direct Link To This Post Posted: 05 January 2006 at 9:27pm
I think this is a flaw in how the CommandBars work. They should maintain state independently of any "Update" that reads values in. That is how we use it because any other way is inpractical for our application.

Having Update called for every control every 100 or so milliseconds to update their state is not the best way to go about it. I think this is what progame is getting at.

We don't use the Update event to set the state of controls. I only use it as a workaround for restoring button states when the customise dialog has been shown.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.140 seconds.