on 09-10-2007 9:04 AM
hello,
I want to embedd three views in one window in a specific screen layout via three viewcontaineruielement´s .
On the left I want vertically embedd a Menü (M, as a tree) and close to M on the top I want to have a browser-view (B) and underneath I want to embedd a detail-view (D).
So M should fill out 1/3 of the width and B and D got 2/3 of the width.
B should fill out 1/3 of the height and D 2/3 of the height.
It should look circa like this:
_______________
|M | B |
| |_______ |
| | |
| | |
| | D |
| | |
|___ |_______ |
How can I achieve this screen layout?
Is it possible to change the screen layout with the mouse when I test the wd-application.
Hello Thorsten,
I tried the following with TextViews. It should work with ViewContainerUIElements too.
I marked the Layout for the RootUIElementContainer as MatrixLayout. I created two TransparentContainers. One as MatrixHeadData, the other as MatrixData and RowLayout. Now, inside the first one, I added a TextView with some very long text and Wrapping set to true. In the second one, I had two TextViews(both as RowHeadData), with different texts. This worked!!
However, the only limitation that I could see was the layout would always depend on the size of content. It varies with the kind of texts I put in.
Hope this helps you.
Regards,
Neha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@all: thanks for your helpful answers. I gave you points
>> However, the only limitation that I could see was the layout would always depend on
>> the size of content. It varies with the kind of texts I put in.
you are right neha.
I made 40 lines of example text in B and B takes the space which the content require (> 30 %) but how can I restrict the space of B to 30 % of height?
So B should fill out 30 % of height and for example show only 20 lines (in these 30 %) of text with a scrollbar.
Extending the web page depending on the content size is not a good solution...
EDIT: So I want to have for each view container a scrollbar if the content of the view exceed the fixed size ( for example B 33% of height).
Message was edited by:
Thorsten Winter
Hello,
You can try this. In the container on the right side, again have two containers, and fix their pixels accordingly. Also, for both the containers (the new ones), set the scrolling mode property to auto.
So now you should have 4 containers. On left you have one single container. On right you have container containing two containers (with height as say 150px and 450px respectively).
Hope this helps.
Regards,
Neha
Make the layout of your root as Grid Layout, colcount = 2. Inside the rootuielement, have two transparent containers. Make the width of the first one as 33% and the second as 66% (for 1/3 and 2/3). Make the height of the container 1 as 100%.
In the second transparent container, add your two elements, for Browser and Details. The layout of the container will be flow layout. Refer to the component WDR_TEST_EVENTS that has a somewhat similar layout.
Regards
Nithya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
you can use a gridlayout as basic, embed viewcontainer in first column,
transparent containes in second.
in the transparen t container, you have a matrix/grid layout with 1 column and
two viewcontainers, this will work, you just need to set your heights and widths
to your preference
grtz,
Koen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.