User forums > Help
How to add a standalone panel(dialog) in wxSmith
MortenMacFly:
--- Quote from: Radek on December 30, 2011, 01:30:10 pm ---I haven't found how can I create more than one "top level" resource in my XRC file using wxSmith.
--- End quote ---
That's not supported, yes - but I also believe that's a bad coding style. So I doubt it really makes sense to support such.
Radek:
Why a bad coding practice, Morten? Where do you want to place popup menus and dialogs and how do you want to load them? For example, wxSmith allowed me only one menu per window: having a menu, I wasn't able to add a popup one. Or, consider a user written error dialog: which window does it belong to, which window should it be a child? What about bitmaps or icons, they can be a part of XRC as well?
oBFusCATed:
What is the problem with placing the custom error dialog in separate xrc file?
Jenna:
You can also add several menus and use the (e.g.) as popup-menu.
Images are also supported as single images or image-list (look into tools in wxSmith tabs).
ouch:
Yeah, I was going to say, just create a new file for each dialog/window. It works great, plus it makes it easy to use bits from one program in another. For example I pretty much use the same about box in all my apps.
Navigation
[0] Message Index
[*] Previous page
Go to full version