Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Populate() performance
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Populate() performance

 Post Reply Post Reply
Author
Message
Bart6 View Drop Down
Groupie
Groupie
Avatar

Joined: 22 March 2009
Location: Belgium
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bart6 Quote  Post ReplyReply Direct Link To This Post Topic: Populate() performance
    Posted: 23 April 2009 at 2:54am
Hi all,

My ReportControl contains the scene nodes of a 3D scene. Each node display the main value of each scene node, such as translation, rotation etc.

When i move an opbject on the screen (using the mouse), i would like to update the ReportControl with the new translation coordinates at the same time as the scene node moves.

I change the value of an existing record, by accessing the RecordItem and setting the new value.
Then i call the Populate() method. The value is indeed update, but the dragging the scene node has become sluggish....

So here is the question:
what is the *fastest* way to update a record/row on the screen. (Populate seems to repopulate the entire reportControl from scratch, i bit heavy to alter just 1 value)

Thanks

Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 24 April 2009 at 3:03am
Use virtual mode! (See VirtualList sample)
PokerMemento - http://www.pokermemento.com/
Back to Top
adrien View Drop Down
Senior Member
Senior Member


Joined: 30 April 2007
Location: New Zealand
Status: Offline
Points: 449
Post Options Post Options   Thanks (0) Thanks(0)   Quote adrien Quote  Post ReplyReply Direct Link To This Post Posted: 01 May 2009 at 9:48am
BeginUpdate()

pRecord->pField->SetValue(...)

EndUpdate()
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.125 seconds.