Print Page | Close Window

howto reduce the frequency of update even

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=3442
Printed Date: 06 October 2024 at 2:30am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: howto reduce the frequency of update even
Posted By: progame
Subject: howto reduce the frequency of update even
Date 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 .




Replies:
Posted By: Oleg
Date 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


Posted By: SuperMario
Date Posted: 28 December 2005 at 1:07pm
If you still need to change frequncy:

CommandBars.Options.UpdatePeriod


Posted By: progame
Date Posted: 28 December 2005 at 8:05pm

can i force to update commandbar?

eg: commandbars1.update



Posted By: dajv
Date 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.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net