Author Topic: Docking help  (Read 3698 times)

Offline dje

  • Lives here!
  • ****
  • Posts: 683
Docking help
« on: May 17, 2007, 11:43:45 pm »
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]

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Docking help
« Reply #1 on: May 18, 2007, 10:54:48 am »
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.
Be patient!
This bug will be fixed soon...

Offline dje

  • Lives here!
  • ****
  • Posts: 683
Re: Docking help
« Reply #2 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

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Docking help
« Reply #3 on: May 18, 2007, 02:37:42 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 :).
Be patient!
This bug will be fixed soon...