| knowledge-database (beta) |
 |
Current group: comp.soft-sys.wxwindows
RE: XRC How do I get a pointer to a sizer?
| DeMarco, Paul | | shailesh kumar |
|
|
 | | From: | DeMarco, Paul | | Subject: | RE: XRC How do I get a pointer to a sizer? | | Date: | Fri, 21 Jan 2005 18:38:22 +0000 (UTC) |
|
|
 | I think I should have asked for a bit more information.
So I have a 2 controls that I wish to hide inside of a complex panel.=20 The control is in a FlexGridSizer which is in a StaticBoxSizerV which is = in a wxFlexGridSizer Which is in a wxFlexGridSizer which is in a = FlexGridSizer.
I have a pointer to a wxWindow in a variable named: pUOMCB=20 The boxsizer has a label that I want to make disappear.
So I try this:
wxSizer *pUOMSizer =3D pUOMCB->GetContainingSizer(); wxSizer *ppUOMSizer =3D pUOMCB->GetGrandParent()->GetContainingSizer();
cerr << "YOur PARENT pointer is: " << long( pUOMSizer ) << endl; cerr << "YOur GRANDPARENT pointer is: " << long( ppUOMSizer ) << endl;
ppUOMSizer->Show( pUOMSizer, false ); //pUOMSizer->Show( ppUOMSizer, false ); ppUOMSizer->Layout();
and it doesn't work. I must not be getting the parent right or = something..
-----Original Message----- From: Robin Dunn [mailto:robin@alldunn.com] Sent: Friday, January 21, 2005 1:16 PM To: wx-users@lists.wxwidgets.org Subject: Re: XRC How do I get a pointer to a sizer?
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=20 GetContainingSizer method.
--=20 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
--------------------------------------------------------------------- To unsubscribe, e-mail: wx-users-unsubscribe@lists.wxwidgets.org For additional commands, e-mail: wx-users-help@lists.wxwidgets.org
|
|
 | | From: | shailesh kumar | | Subject: | calling OnPaint in wxglcanvas | | Date: | Sun, 23 Jan 2005 07:10:22 +0000 (UTC) |
|
|
 | hi
I have a question regarding OnPaint and glCanvas . I want to calculate the time taken by each frame , so I am calculating that in the OnPaint method of my class which is derived from the glCanvas class .
I want to know how do I call the OnPaint method explicitely , is there some method like Refresh , repaint which calls the OnPaint .
Thanks Shailesh
__________________________________ Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. http://mobile.yahoo.com/maildemo
--------------------------------------------------------------------- To unsubscribe, e-mail: wx-users-unsubscribe@lists.wxwidgets.org For additional commands, e-mail: wx-users-help@lists.wxwidgets.org
|
|
|
| | |
|
 |