Search the web
Sign In
New User? Sign Up
flexcoders · RIA Development with Adobe Flex
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Chrome behind content?   Message List  
Reply | Forward Message #67457 of 150887 |
Re: [flexcoders] Re: Chrome behind content?

Grr... works for everything but my Label.  Keeps whining about antiAlias being null.  Had this happen last night (this morning?) when the TextField isn't in the DisplayList, but gets measure called on 'em.  Fuggit, everything else works; thanks a bunch Michael!

On 3/11/07, Jesse Warden <jesterxl@...> wrote:
Thanks Michael, I'll try your code.

Paul, if you look in mx.containers.Container, you can see how they override and abstract the DisplayList API so that you have 2 types of children; raw and regular.  This allows you to have "those you put in Canvas" and "those that make Panel".  For example, the title bar, close button, title, etc. are NOT something you want inside your Panel container to interact with your children.  If you put a CheckBox control into a Panel, you would expect only 1 child to be in your container (numChildren, getChildAt(0), etc.).  This allows you to build container components for others to use without "knowing" how your child setup works.

On 3/11/07, Paul DeCoursey < paul@...> wrote:

I'm not really sure what that is all about, Background isn't chrome it
is background. Children need to be in front of background. I know at
one point I was having trouble with a background rendering over some
graphical elements that I had. So to fix that I did my graphical
elements on a child item, that way the canvas background rendered
behind my content. I'm not sure you have the same issue, but perhaps
you could use that technique to solve your issue. Create a container
with two children, one for display elements and one for chrome. Add
the chrome first and the children second and your children will be
above the chrome.

Paul



--- In flexcoders@yahoogroups.com, "Jesse Warden" <jesterxl@...> wrote:
>
> I'm extending Canvas. His base class, Container, decrees on line
4608 that
> all children are behind chrome. I want the opposite. I want my chrome
> BEHIND the content; I want the content IN FRONT of my chrome.
>
> However, since Container does all kinds of crazy over-writting of
> DisplayObject methods and tucks them away in mx_internal and various
other
> private & final prefix's, I have no clue how to easily make my
chrome inside
> of rawChildren go backwards. Obviously, setChildIndex doesn't work
at this
> point because the base class owns those methods as proxies now.
>
> The hack, for now, is to NOT have my chrome draw a background. If it
> doesn't, I can click on children just fine. That, however, sucks
because I
> want a background. Figured 2nd hack is to just set the backgroundColor
> property to my chrome's background, and redraw my chrome as a mask
for the
> background. That is worse.
>
> Suggestions?
>





Sun Mar 11, 2007 5:18 pm

jesterxl@...
Send Email Send Email

Forward
Message #67457 of 150887 |
Expand Messages Author Sort by Date

I'm extending Canvas. His base class, Container, decrees on line 4608 that all children are behind chrome. I want the opposite. I want my chrome BEHIND the...
Jesse Warden
jesterxl@...
Send Email
Mar 11, 2007
6:25 am

Well man, this is a hack and it works though :) I had the same issue and so far this hasn't blown up in my face. Try this on for size... the backgroundInstance...
Michael Schmalle
teotigraphix
Offline Send Email
Mar 11, 2007
11:44 am

Also this really sounds like a bug. You should report it. ... 4608 that ... other ... chrome inside ... at this ... because I ... for the...
Paul DeCoursey
lepusmars
Offline Send Email
Mar 11, 2007
2:09 pm

I'm not really sure what that is all about, Background isn't chrome it is background. Children need to be in front of background. I know at one point I was...
Paul DeCoursey
lepusmars
Offline Send Email
Mar 11, 2007
2:10 pm

Thanks Michael, I'll try your code. Paul, if you look in mx.containers.Container, you can see how they override and abstract the DisplayList API so that you...
Jesse Warden
jesterxl@...
Send Email
Mar 11, 2007
5:06 pm

Grr... works for everything but my Label. Keeps whining about antiAlias being null. Had this happen last night (this morning?) when the TextField isn't in...
Jesse Warden
jesterxl@...
Send Email
Mar 11, 2007
5:18 pm

Paul > I'm not really sure what that is all about, Background isn't chrome it is background. Children need to be in front of background. I have a spec where I...
Michael Schmalle
teotigraphix
Offline Send Email
Mar 11, 2007
9:14 pm

Could you post the code of the problem? I think I understand the problem but I need to see what you are doing to help with the solution. I understand the...
Paul DeCoursey
lepusmars
Offline Send Email
Mar 12, 2007
1:08 am

... Are you talking to me? I don't have a problem, Jesse asked a question, I threw some code at him to try and that is that. I don't want to create a second...
Michael Schmalle
teotigraphix
Offline Send Email
Mar 12, 2007
2:11 am

Sorry gents, can't post the code, for an NDA project. Regardint the Label component... it's weird. If I add him to rawChildren, no problem. If I add him to...
Jesse Warden
jesterxl@...
Send Email
Mar 12, 2007
3:05 am

That would make sense to me. UIComponents don't like having the parent chain broken by non-UIComponents. ________________________________ From:...
Alex Harui
alex_harui
Online Now Send Email
Mar 12, 2007
5:12 am

... No, I was replying to the thread. ... him to ... rawChild...
Paul DeCoursey
lepusmars
Offline Send Email
Mar 12, 2007
1:53 pm

... override ... children; raw ... "those ... etc. are ... expect only ... This ... "knowing" ... That is precisely what I have created, in fact my ideas came...
Paul DeCoursey
lepusmars
Offline Send Email
Mar 12, 2007
12:53 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help