XWidgetSoft Forum
https://bbs.xwidget.com/

Dynamic component sizing
https://bbs.xwidget.com/viewtopic.php?f=8&t=3073
Page 1 of 1

Author:  digigamer [ May 15th, 2013, 5:24 pm ]
Post subject:  Dynamic component sizing

Is there any way to add components that will auto size as per the size available??

Currently I'm coding a widget that has a layer. I want to add image controls into it. It can be one or more. I want them to share the available space?? Is it possible with standard alignment options??

If it is then plz suggest something??? An example is the windows task manager "performance" tab. That creates graphs per the number of CPUs.

Author:  Jimking [ May 16th, 2013, 4:08 am ]
Post subject:  Re: Dynamic component sizing

Could u provide us a screenshot for what do u mean..?

Author:  qiancang [ May 16th, 2013, 5:12 am ]
Post subject:  Re: Dynamic component sizing

Attachment:
align.jpg
align.jpg [ 121.2 KiB | Viewed 3711 times ]


All child controls can use the same align.But child controls may be out of order sometimes.

Author:  digigamer [ May 16th, 2013, 5:18 pm ]
Post subject:  Re: Dynamic component sizing

qiancang wrote:
Attachment:
align.jpg


All child controls can use the same align.But child controls may be out of order sometimes.


Thanks, you got me to the right path... And for the alignment issue... XWidget parses component from bottom to top so after saving I had to manually arrange the components in my main.xul!

Page 1 of 1 All times are UTC - 8 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/