User forums > Help

questions about wxsmith in CB

(1/4) > >>

gtafan:
After finally I was able to build wxWidgets 3.0.2 I can make GUIs using wxSmith integrated into CodeBlocks. Making a frame project is really not a problem, but I would like to create custom dialogs inside that frame project. Have used wxDev befor and adding such custom dialogs to a frame project was no problem there. Is there a way to do that in CodeBlocks?

BlueHazzard:
wxSmith->Add wxDialog?

gtafan:

--- Quote from: BlueHazzard on April 10, 2017, 06:55:16 pm ---wxSmith->Add wxDialog?

--- End quote ---
The "?" was a bit iritating. So I have to open the wxSmith menu and select there Add wxDialog, right? Thanks I try.

OK, that was exactly what I was asking, thanks again.

gtafan:
So have an other question. Have added an icon to my wxFrame and when I start the application in CB everything worcks fine, but when started the compiled exe on an other PC got the error mesage about mising icon. Have used wxDev befor and there this icon was compiled into exe, is there a way to do that in CB to?

BlueHazzard:
this is only partially a codeblocks question, and i only can help you with the non codeblocks part ;)
I think you need a resource file and the resource compiler...
For the resource file:
https://forums.wxwidgets.org/viewtopic.php?t=35976

For the codeblocks part:
I don't know how exactly codeblocks uses the resource compiler and if mingw ships with one... But at a first test you can simply try to add a resource file with the appropriate extension to the project and cross fingers. Maybe it works... if not we have to look into it.
I have no windows machine at the hand so i can't test it...

A other possibility is to use xpm files...

greetings

Navigation

[0] Message Index

[#] Next page

Go to full version