Board index » cppbuilder » Dynamically create a TToolBar

Dynamically create a TToolBar


2003-08-12 08:38:01 PM
cppbuilder35
Hi!
In my app, I need several ToolBars. I want to create them by code. How can I
add a TToolButton to the ToolBar?
Thanks,
Gunter
 
 

Re:Dynamically create a TToolBar

"Gunter Gemmel" < XXXX@XXXXX.COM >wrote in message
Quote
In my app, I need several ToolBars. I want to create them by code. How can
I
add a TToolButton to the ToolBar?
I believe you should make use of the Parent property.
TToolButton* tb = new TToolButton( ToolBar1 );
tb->Parent = ToolBar1;
...
Ralph