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 » TreeCtrl » hierarchical tree data structure & binding to TreeCtrl
Re: hierarchical tree data structure & binding to TreeCtrl [message #12668 is a reply to message #12635] Mon, 12 November 2007 20:56 Go to previous messageGo to previous message
Novo is currently offline  Novo
Messages: 1362
Registered: December 2006
Ultimate Contributor
luzr wrote on Sun, 11 November 2007 17:38

I am not quite sure I understand the question. Anyway, maybe the answer is that U++ is desgined in a way that you usually do not need have "variable-widget" pairs (using variable to store the data, only use widget for GUI interaction). You do not need the variable, you can store the data directly in widget. You can even think about widgets as "value with possible GUI editing"...



Let say I have a database table with 100K records (quite small) and I'd like to show it in several widgets (ArrayCtrl). Duplicating of data would require huge amount of memory, and I'll need to synchronize data in several widgets in case of data change. Fortunately there is a virtual mode of ArrayCtrl. Having such a virtual mode in the TreeCtrl would be very handy (isn't it a model-view?).

I think that separation of concepts (like graphical data representation and data itself) is very useful. Developing something more or less complicated without that is hardly possible.

Making clear separation of concepts requires a lot of experience in software design. That is not easy. But using good designed software is real fun ! Smile


Regards,
Novo
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon14.gif
Previous Topic: Like the new Drag and Drop TreeCtrl but...
Next Topic: How to turn of tool-tips please?
Goto Forum:
  


Current Time: Sat Jun 08 09:15:57 CEST 2024

Total time taken to generate the page: 0.01807 seconds