 | | From: | DeMarco, Paul | | Subject: | XRC How do I get a pointer to a sizer? | | Date: | Fri, 21 Jan 2005 18:03:49 +0000 (UTC) |
|
|
 | When using XRC how do I get a pointer to a particular sizer? = FindWindow()?
wxWidgets 2.4.2
Thank you.
--------------------------------------------------------------------- To unsubscribe, e-mail: wx-users-unsubscribe@lists.wxwidgets.org For additional commands, e-mail: wx-users-help@lists.wxwidgets.org
|
|
 | | From: | Stephane GULLY | | Subject: | Re: XRC How do I get a pointer to a sizer? | | Date: | Fri, 21 Jan 2005 18:14:53 +0000 (UTC) |
|
|
 | >When using XRC how do I get a pointer to a particular sizer? FindWindow()? > > Search for the parent wxWindow and use : p_window->GetSizer() Or search for a sizer wxWindow child and use : p_window->GetContainingSizer()
-- Stéphane GULLY - http://www.zeitoun.net/
--------------------------------------------------------------------- To unsubscribe, e-mail: wx-users-unsubscribe@lists.wxwidgets.org For additional commands, e-mail: wx-users-help@lists.wxwidgets.org
|
|
 | | From: | Robin Dunn | | Subject: | Re: XRC How do I get a pointer to a sizer? | | Date: | Fri, 21 Jan 2005 18:16:13 +0000 (UTC) |
|
|
 | DeMarco, Paul wrote: > When using XRC how do I get a pointer to a particular sizer? FindWindow()?
Use XRCCTRL to get a widget contained in the sizer, and then call it's GetContainingSizer method.
-- Robin Dunn Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
--------------------------------------------------------------------- To unsubscribe, e-mail: wx-users-unsubscribe@lists.wxwidgets.org For additional commands, e-mail: wx-users-help@lists.wxwidgets.org
|
|