I wanted to reply earlier, but i got some problem with my build :( Anyway, your problem is that your label is rendered behind the tab content. To test that behavior, try to reduce the height of the tabcontent and put your label right under it, it should now display your text. There is no way to fix the problem that your label is rendered behind the tab content, because there is no system in that allow you to change the display order right now in chrome. But I will suggest you to look at StatusBubble, you mind find what you are searching for over there to implement the resize corner.
Jo On Dec 12, 4:32 pm, Marc-Andre Decoste <[email protected]> wrote: > Salut, > > I'm working on the resize corner view and am having a little trouble > getting it to work. I tried to use the sample code provided > inhttp://dev.chromium.org/developers/design-documents/views-windowing, by > doing as follows: > > - in BrowserView::Init(), I create a label view and add it as a child of > the contents_container_ > - in BrowserView::Layout(), I get the parent of the label, as well as the > preferred size of the label and then do as follows: > label->SetBounds((parent_view->width() - ps.width() )/ 2, > (parent_view->height() - ps.height()) / 2, > ps.width(), ps.height()); > - Then I run with a break point in Label::Paint() and it seems to do as > it is told except... > I don't see the Hello World text drawn anywhere... > - I also tried my own BrowserResizerView class which also has mouse event > overrides and they never get called, only the Paint override which seems to > be painting on a /dev/nul canvas... > > What am I doing wrong? Do we have more detailed documentation about this, > or ishttp://dev.chromium.org/developers/design-documents/chromeviewsthe > only source of info we currently have? > > Thanks! > > BYE > MAD --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Chromium-dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/chromium-dev?hl=en -~----------~----~----~----~------~----~------~--~---
