Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: rickg22 on February 22, 2005, 06:38:57 am

Title: Can the toolbar be modified to use xrc?
Post by: rickg22 on February 22, 2005, 06:38:57 am
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?
Title: Can the toolbar be modified to use xrc?
Post by: rickg22 on February 23, 2005, 07:38:09 am
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 ^^;;
Title: Can the toolbar be modified to use xrc?
Post by: Anonymous on February 24, 2005, 12:51:19 pm
how to build two or multi toolbars?
Title: Can the toolbar be modified to use xrc?
Post by: rickg22 on February 24, 2005, 05:43:07 pm
Are you sure this isn't a "general" question? If you do want to modify codeblocks, please give more details.