04-24-2012 10:58 AM
I will try to explain what I'm trying to do:
-I have a Manager (will talk about him later).
-I have a BitmapField with a height of 25 pixels.
-Last I have a ListField that occupies the rest of the screen.
-I add the two fields on the Manager.
Well, then I want that the BitmapField overlap the ListField by 5 pixels. But instead, I got the ListField over the BitmapField by those 5 pixels.
That's the situation. About how I'm going to overlap them, I'm using the NegativeMarginVerticalFieldManager that comes inside the AdvancedUI example project, exactly the one used in UIExampleNegativeMarginScreen class.
Problem: after trying things and reading all I could find about paint, subpaint, layout and subLayout. I realized I had to modify the context stack from Graphics:
More specific info about context stack:
Ok, so after reading them... I'm lost.
How do I say to the context stack that if I have these fields:
I want the order of painting them like this?:
Please note that I'm saying the order of painting, not the position on the screen, the position should be like the first list.
Well, thanks for any help and sorry about the explanation, I thought this was the most accurate way of saying it without leaving space for misunderstandings.
If any snippet code is needed, say so.
04-24-2012 11:17 AM
04-25-2012 03:41 AM - edited 04-25-2012 03:41 AM
Thanks for the suggestion simon, but I already tried to substitute add() with insert() and trying to insert my BitmapField the last one, but on the context stack it was still the second field.
I have the feeling this stack goes from the most top field of the screen to the most below one.
That's why I thought that maybe I had to artificially alter the order and how the field is added to the stack.