News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Can the toolbar be modified to use xrc?

Started by rickg22, February 22, 2005, 06:38:57 AM

Previous topic - Next topic

rickg22

I was browsing the sourcecode and I realized that the whole toolbar is built using the "conventional" way. Is there any way to modify it using XRC files? Like each plugin having its toolbar.xrc or something?

rickg22

Yes, it can!! :D

I modified the main.cpp to load the toolbar from an .xrc.

There's a caveat: The image files have to be in the SAME ZIP FILE than the .xrc. It's a filesystem limitation. (However, the images can go in a subdirectory *INSIDE* the zip.

I still have to check how to use this to merge the xrc toolbar with the plugins toolbars. I hope a toolbar can have OTHER toolbars inside, it'd make my job much easier (I'd use a master toolbar, then insert the main and plugins toolbars inside it).

I'd add a screenshot, but don't know how ^^;;

Anonymous


rickg22

Are you sure this isn't a "general" question? If you do want to modify codeblocks, please give more details.