[FXRuby]problem creating widget inside a tab label

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?