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 in
http://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 is http://dev.chromium.org/developers/design-documents/chromeviews the
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to