Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » ArrayCtrl: How can I refresh just one cell that changed?
ArrayCtrl: How can I refresh just one cell that changed? [message #15926] Fri, 16 May 2008 23:31 Go to next message
jlfranks is currently offline  jlfranks
Messages: 57
Registered: May 2007
Location: Houston, TX, USA
Member
I'm getting real-time updates that affect the content of only
one cell in an ArrayCtrl.

I modify the cell, and then call Refresh() on the entire ArrayCtrl -- takes too long and UI falls behind.

Is there a way to just refresh the one cell that I changed?

--jlf
Re: ArrayCtrl: How can I refresh just one cell that changed? [message #16052 is a reply to message #15926] Sun, 25 May 2008 20:38 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Sure, do not call Refresh Wink

Mirek
Re: ArrayCtrl: How can I refresh just one cell that changed? [message #16054 is a reply to message #16052] Mon, 26 May 2008 00:24 Go to previous messageGo to next message
jlfranks is currently offline  jlfranks
Messages: 57
Registered: May 2007
Location: Houston, TX, USA
Member
That's interesting. If I don't call Refresh() on the ArrayCtrl, then the new information does not update.

This behavior is happening when we are getting a real-time update from a data acquisition system that uses PostCallback.
This is dispatched and processed on our UI thread. The callback simply loads the new value into the cell of intest with SetData(row,column,value).

The problem arose because this new data is not being shown.
Using ArrayCtrl.Refresh() made the new information show up
for the new information to be displayed.

That's a big hammer and takes a lot of time. The updates
are comming in at 0.12 seconds, which should not be a problem.

Do you have any idea why this is not updating based on this
additional information?

We are on Linux UPP 2007.1 release at this time.

--jlf
Re: ArrayCtrl: How can I refresh just one cell that changed? [message #16055 is a reply to message #16054] Mon, 26 May 2008 00:45 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Hard to say...

First of all, I recommend trying current linux svn version. A lot of bugfixes happened since 2007.1, it is no impossible this is some bug in Linux CtrlCore, already fixed.

Mirek
Previous Topic: ArrayCtrl, pop-up menus, and mouse problems...
Next Topic: bad align of an optionbutton in gridctrl
Goto Forum:
  


Current Time: Mon Apr 29 01:34:45 CEST 2024

Total time taken to generate the page: 0.99621 seconds