Marc, there is an attribute in the model called 'containerData' which is a string owned by an element but used by the element's container (i.e. a PartSashContainer).
For the PSC it uses integer 'weights' to determine the percentage of space used by an element. So if you want the initial state to be 25% / 75% set the containerData for the left element to "2500" and the containerData for the right element to "7500". Note that you can use other values but this gives the sash code enough info to allow dragging at the pixel level (If you just used "25" and "75" then dragging the sashes would result in 'chunky' behavior in which the sash would jump a number of pixels at a time). Hope this helps, Eric From: Marc Teufel <[email protected]> To: [email protected] Date: 04/11/2011 04:45 AM Subject: [e4-dev] Width PerspectiveStack / PartSashContainer Sent by: [email protected] Hello, another question: In my Application.e4xmi I declared a perspectivestack with a Part Sash Container. Is it possible to define the width for the splitted areas in the partsashcontainer? Where to define this declarative in the e4xmi and how to do it with code? Thank you very much for your help! Bye, Marc. _______________________________________________ e4-dev mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/e4-dev
_______________________________________________ e4-dev mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/e4-dev
