# wxAuiFloatingFrame get\_parent not supported

**URL:** <https://www.ruby-forum.com/t/wxauifloatingframe-get-parent-not-supported/217456>\
**Category:** wxRuby\
**Created:** [March 1, 2012, 10:53pm UTC](https://www.ruby-forum.com/t/wxauifloatingframe-get-parent-not-supported/217456 "2012-03-01T22:53:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [March 1, 2012, 10:53pm UTC](https://www.ruby-forum.com/t/wxauifloatingframe-get-parent-not-supported/217456/1 "2012-03-01T22:53:47Z")

</div>

ruby 1.9.3, wxWidgets 2.8.11, wxruby 2.0.1, ubuntu 11.10 x86\_64

To get my sizers to update everything in some cases I need to:

self.parent.send\_size\_event

Self is a derived class of Wx::ScrolledWindow

The scrolledWindow is embedded in an AUI managed pane. While the pane  
is attached, the parent class is Wx::AuiFrame. At this point I can  
trigger an event that in turn calls the send\_size\_event and things are  
good.

If I detach the pane and fire the event that calls the  
self.parent.send\_size\_event I get the below error:

/wx/accessors.rb:48:in `get_parent': Error wrapping object; class`wxAuiFloatingFrame’ is not supported in wxRuby (NotImplementedError)

I am thinking that the floating frame is a top frame and there isn’t  
an application parent or I simply (hah) need to implement get\_parent  
in some manner to deal with the size event feedback I want.

My current theory is I need to find a proper hook at some level above  
my embedded window. I am having trouble finding a hook or other method  
to get around the above fault. I will continue to try and find a wedge  
into the AuiFloatingFrame but think that route may be beyond my  
understanding at this time to do some surgery on the SWIG stuff  
(working on that).

Any assistance is very much appreciated. In the meantime I will  
continue pluggin away at it. If needed, I can whittle down my app to  
showcase the problem.

Have a good one!

TK
