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 » U++ Widgets - General questions or Mixed problems » dynamic scatterDraw in a GUI (scatterDraw)
Re: dynamic scatterDraw in a GUI [message #45575 is a reply to message #45573] Mon, 07 December 2015 10:16 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13976
Registered: November 2005
Ultimate Member
I have moved topic as the very same rules apply to any widget that you want to create dynamically.

Sure, why not.

There are several strategies how to do that.

I guess the most straightforward way is to

- mark the are of Layout that you want to fill with widgets with ParentCtrl

- have "Array<ScatterCtrl> list", or perhaps just "Array<Ctrl> list" to store the current list of widgets you want to add to dialog

- then just to reconfigure, list.Clear and list.Add or list.Create widgets, add them as children of that ParentCtrl with proper coordinates

Look here for inspiration:

http://www.ultimatepp.org/reference$DynamicDlg$en-us.html
 
Read Message
Read Message
Read Message
Previous Topic: Parent continues before child is painted
Next Topic: How to set a child as top most Ctrl
Goto Forum:
  


Current Time: Sun May 12 03:55:45 CEST 2024

Total time taken to generate the page: 0.02709 seconds