Add TextCtrl to toolbar

Hi,
How can I add a textctrl to a toolbar?
I tried toolbar.add_control(TextCtrl.new(self, ID_ANY)), but that
returns false and the control gets placed wherever.

Thanks

Lucas Levin wrote:

How can I add a textctrl to a toolbar?
I tried toolbar.add_control(TextCtrl.new(self, ID_ANY)), but that
returns false and the control gets placed wherever.
toolbar.add_control( TextCtrl.new(toolbar, ID_ANY) )

cheers
alex