| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| |
| --> |
| <js:View xmlns:fx="http://ns.adobe.com/mxml/2009" |
| xmlns:js="library://ns.apache.org/royale/basic" |
| xmlns:local="*"> |
| |
| <fx:Style> |
| @namespace js "library://ns.apache.org/royale/basic"; |
| |
| |
| .Group1 { |
| background-color: #FFCCCC; |
| } |
| |
| .Group2 { |
| background-color: #CCFFCC; |
| } |
| |
| .Group3 { |
| background-color: #DEDEFF; |
| } |
| |
| .Group4 { |
| background-color: #CCCC00; |
| } |
| |
| /* Give the outer HDividedContainer some padding */ |
| js|HDividedContainer { |
| padding: 10px; |
| } |
| |
| /* Give all the Groups a little padding */ |
| js|Group { |
| padding: 4px; |
| } |
| </fx:Style> |
| |
| <js:HDividedContainer width="600" height="600"> |
| <js:VGroup className="Group1" width="175" height="100%"> |
| <js:Label text="Group One" /> |
| <js:Spacer height="30" /> |
| <js:Label text="Menu or tool palette perhaps" /> |
| </js:VGroup> |
| |
| <!-- Because VDividedContainer has no default width it will occupy |
| the remaining width of the HDividedContainer. |
| --> |
| <js:VDividedContainer> |
| <js:Group id="group2" className="Group2" height="100" > |
| <js:Label text="Group Two" /> |
| </js:Group> |
| |
| <!-- Because Group has no default height and group3 is not given |
| an explicit height, it will occupy the remaining space in the |
| VDividedContainer. |
| --> |
| <js:Group id="group3" className="Group3"> |
| <js:Label text="Group 3" /> |
| </js:Group> |
| |
| <js:Group id="group4" className="Group4" height="100"> |
| <js:Label text="Group 4" /> |
| </js:Group> |
| |
| </js:VDividedContainer> |
| |
| </js:HDividedContainer> |
| |
| </js:View> |