# \[FXRuby\]problem creating widget inside a tab label

**URL:** <https://www.ruby-forum.com/t/fxruby-problem-creating-widget-inside-a-tab-label/180941>\
**Category:** Ruby\
**Created:** [January 1, 2010, 6:56am UTC](https://www.ruby-forum.com/t/fxruby-problem-creating-widget-inside-a-tab-label/180941 "2010-01-01T06:56:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![night\_stalker](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/f0a364/32.png) [@night\_stalker](https://www.ruby-forum.com/u/night_stalker)\
**Post date:** [January 1, 2010, 6:56am UTC](https://www.ruby-forum.com/t/fxruby-problem-creating-widget-inside-a-tab-label/180941/1 "2010-01-01T06:56:37Z")

</div>

I want to add a “close this tab” button inside an FXTabItem, but

```
FXButton.new some_tab_item, 'x'

```

throws a type error: not an FXComposite.  
It seems an FXTabItem can not have child widgets … Then how to?
