# Creating a child window?

**URL:** <https://www.ruby-forum.com/t/creating-a-child-window/206270>\
**Category:** wxRuby\
**Created:** [April 27, 2011, 12:45am UTC](https://www.ruby-forum.com/t/creating-a-child-window/206270 "2011-04-27T00:45:54Z")\
**Posts on this page:** 2\
**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:** [April 27, 2011, 12:45am UTC](https://www.ruby-forum.com/t/creating-a-child-window/206270/1 "2011-04-27T00:45:54Z")

</div>

How do I create a child window, one that I can use as a separate control  
window for the parent window. I want to implement controls on desktop  
one and the parent window on desktop two. This would be for multiple  
desktop operations. My idea is to use it for a projector AV station.

So far I have this: [http://pastie.org/1837121](http://pastie.org/1837121)

I can’t figure out how to make a child. I tried making a new frame, but  
that was unsuccessful.

---

<div class="post-metadata">

**Author:** ![ilya\_r](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/58956e/32.png) [@ilya\_r](https://www.ruby-forum.com/u/ilya_r)\
**Post date:** [April 28, 2011, 1:21pm UTC](https://www.ruby-forum.com/t/creating-a-child-window/206270/2 "2011-04-28T13:21:25Z")

</div>

On 26/04/2011 23:45, Ilya R. wrote:

Pastie seems to be down, but what you suggest sounds possible.

> I can’t figure out how to make a child. I tried making a new frame, but  
> that was unsuccessful.

Could you post the code that you tried, and any error messages you  
received? It should be as simple as:

child = Frame.new(parent, …)

You then fill the child with widgets as required, in the normal way.

a
