How to define the width of a Part in Todo application using application model

27 views
Skip to first unread message

Java Dev

unread,
Sep 22, 2012, 5:27:28 AM9/22/12
to vog...@googlegroups.com

Hi,
This must be a really simple thing to do, but have not figured it out. How can I define in my application model (Application.e4xmi) what the size of my various Parts inside the PartStack will be?
For example this is the Todo application UI:
The various Parts get equal size (the split is in the middle). How can I define so that e.g the left part has less space? I.e. move that division bar to the left? I can not seem to find any width, for the Parts in e4xmi

Thank you!

Java Dev

unread,
Sep 22, 2012, 6:19:38 AM9/22/12
to vog...@googlegroups.com
Hi, it seems I must use the "Container Data" and set the value. I see this from page:233
Is this right? But I see that if I use the Container Data to set a value, e.g. 30 I must also set explicitely a 70 in the other Part Stack otherwise it will not be visible. Why?

Lars Vogel

unread,
Sep 23, 2012, 3:09:55 PM9/23/12
to vog...@googlegroups.com
Hi,

yes you found it. 

The container data is the relative weight, if you tell the system that one has a weight of 30 and the other of zero, the first will get all the space.

Best regards, Lars

2012/9/22 Java Dev <flying...@yahoo.com>
--
You received this message because you are subscribed to the Google Groups "vogella" group.
To view this discussion on the web visit https://groups.google.com/d/msg/vogella/-/a01aIOKemi8J.

To post to this group, send email to vog...@googlegroups.com.
To unsubscribe from this group, send email to vogella+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/vogella?hl=en.

Reply all
Reply to author
Forward
0 new messages