Hi all !
I am working on a dockable panel for the ThreadSearch plugin, which is a kind of toolbar.
This is done to spare space on the Messages notebook panel.
My problem is that I cannot dock my panel on the same line as the other toolbars. I suppose it is due to the fact it is a wxPanel and not a wxToolbar. Is there any solution to dock my panel on the toolbars raw ?
If I cannot dock it on the toolbars raw, I don't spare space. :(
You may have a look at the attached picture if what I said is not clear.
Thanks,
Dje.
[attachment deleted by admin]
Why don't you check how other plugins add their toolbars?
The compiler, debugger and code-completion plugins already do that. You just need to build your toolbar in the BuildToolbar() function. And you can either use a XRC to define the toolbar or create all its components in code.
Hi Mandrav !
I already checked other plugins code :)
I chose to use a wxPanel derived class that allows the use of sizer (more pleasant for combo box).
Is it possible to dock a wxPanel dockable window on a toolbars raw or will have I to abandon the resizeable combo ?
Dje
Quote from: dje on May 18, 2007, 01:53:08 PM
Hi Mandrav !
I already checked other plugins code :)
I chose to use a wxPanel derived class that allows the use of sizer (more pleasant for combo box).
Is it possible to dock a wxPanel dockable window on a toolbars raw or will have I to abandon the resizeable combo ?
Dje
I think not. The problem is that wxToolbar doesn't contain a sizer (or so I think).
Anyway, this is the only way to add a toolbar in C::B so decide for yourself :).