I'm trying to create a custom component in Flex2 based on TitleWindow that
should be the base for a couple of windows that all have more or less
different controls but also have several parts in common like an 'Ok' and a
'Cancel' Button that are at the bottom of every window.

I've created a component named EditorWindow which is the base for all the
other windows. Here's a simple mxml of it ...

<?xml version="1.0" encoding="utf-8"?>
<mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml"; layout="absolute"
width="100%" height="100%" showCloseButton="true">
        <mx:VBox left="10" right="10" top="10" bottom="10">
                <mx:HBox width="100%" height="100%">
                </mx:HBox>
                <mx:HRule width="100%"/>
                <mx:HBox width="100%">
                        <mx:Button label="OK" width="60"/>
                        <mx:Button label="Cancel" width="60"/>
                </mx:HBox>
        </mx:VBox>
</mx:TitleWindow>

And a window class that is based on this component would naturally look like
this ...

<?xml version="1.0" encoding="utf-8"?>
<EditorWindow xmlns="gui.parts.*" xmlns:mx="http://www.adobe.com/2006/mxml";
width="400" height="300" xmlns:ns1="gui.parts.*">
</EditorWindow>

Ideally the varying controls of every inheriting Window should go into the
empty HBox above the HRule and the two buttons at the bottom but if I create
a window based on this and try to drag a component into the place it will
not insert any component code. If I manually write the component code
between the <EditorWindow> tags it will fill out the whole window and
ignores the boundaries of the HRule and the two buttons. Does somebody know
if it possible to get this working differently?

Thanks for any advice!
Sascha




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to