another application) as it does at run time in the same application.
Did you compile it as an swc and bring it in to the application?
If you havn't, that is something you have to do before you see styles.
Peace, Mike
Many thanks for the replies, but I am not sure you have addressed the
question I am asking.
How do get the component to behave when used at design time (in
another application) as it does at run time in the same application.
Thanks
BOb
--- In [email protected], "Michael Schmalle"
<[EMAIL PROTECTED]> wrote:
>
> // CSS file bundled with your component
>
> Manish,
>
> This goes back to an original question I had at the 'beginning'.
>
> When you say bundled, what is the correct way to get that 'default'(IE
> selector with the class name) css file to be compiled with your swc?
Using a
> library project does not seem to work correctly.
>
> Is the .css file supposed to be named anything? Have you had any
experience
> with a Library Project?
>
> Any thoughts?
>
> Peace, Mike
>
> On 7/19/06, Manish Jethani <[EMAIL PROTECTED]> wrote:
> >
> > On 7/19/06, bobpardoe1959
<[EMAIL PROTECTED]<bob.pardoe%40kuehne-nagel.com>>
> > wrote:
> >
> > > I am overridding the initialize () function and setting a number of
> > > style settings i.e. setStyle("dropShadowEnabled", false);
> >
> > setStyle() is for users of your component. Never call setStyle() on
> > yourself, unless you don't want the following to work:
> >
> > .myStyle {
> > dropShadowEnabled: true;
> > }
> >
> > <BobComponent styleName="myStyle" />
> >
> > In this case, if you've called setStyle() on yourself, the user's
> > setting will not be honoured (because setStyle() has higher
> > precedence).
> >
> > The right way to set a default style is using a type selector:
> >
> > // CSS file bundled with your component
> > BobComponent {
> >
> > dropShadowEnabled: false;
> > }
> >
> > > When I then use my component in my app and look at it in design view
> > > these settings are not being honoured !
> > >
> > > Am I overridding the correct method ?
> >
> > Try calling trace() to see if your method's being called. If you have
> > trace() disabled, just throw an exception.
> >
> > throw new Error(); // just to check if this actually gets thrown
> >
> > Manish
> >
> >
> >
>
>
>
> --
> What goes up, does come down.
>
--
What goes up, does come down. __._,_.___![]()
SPONSORED LINKS
Custom software development Database development software Embedded software development Offshore software development Software development Software development company
YAHOO! GROUPS LINKS
- Visit your group "flexcomponents" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
__,_._,___
- [flexcomponents] Creatng a component (overridng Panel) an... bobpardoe1959
- Re: [flexcomponents] Creatng a component (overridng ... Manish Jethani
- Re: [flexcomponents] Creatng a component (overri... Michael Schmalle
- [flexcomponents] Re: Creatng a component (ov... bobpardoe1959
- Re: [flexcomponents] Re: Creatng a compo... Michael Schmalle
- Re: [flexcomponents] Creatng a component (ov... Manish Jethani
Reply via email to
