Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

[wxSmith]Howto edit excist dialog

<< < (2/2)

byo:

--- Quote from: yop on December 11, 2005, 09:08:25 pm ---What's the status on the xrc import functionality? I built a xrc file using wxSmith, but the underlying code didn't match my dialog and the dialog was listed in "External Resources". Then I removed it from my project and gave import xrc a shot but the imported dialog is blank. Anyway I could add the xrc and write the underlying code to load it up, but the automation of wxSmith has spoiled me ;)
The above in a few words:
I built an xrc file using wxSmith
I tried to import it
I ended up with an empty dialog

BTW (I don't remember if I've mentioned it before) wxSmith is a GREAT piece of work! I designed the dialog by hand and built it in less than half an hour  :shock:

--- End quote ---

Ok, I guess You're using latest svn snapshoot (in RC2 there's no ability to open xrc files).
I haven't tested this option much (I mean editing external xrc files) - Could You reporoduce and send me content of this xrc ?

Maybe some explanation here:
wxSmith uses it's own format for resource files. In fact it's modified version of xrc but with additional data. Resources managed by wxSmith are in *.wxs files (in wxsmith directory created inside project). There resources can be used to generate source code which build resource or create xrc file for it and class using this xrc file.

And When You say that You've got empty window after importing it seems to be a bug  :oops:.

Currently the best way to use resources is to create them but after adding using wxSmith->Add ... enteries :). (Currently I doin't have enough time to work on wxSmithi but I hope that it will change soon)

yop:

--- Quote from: byo on December 11, 2005, 11:28:19 pm ---Ok, I guess You're using latest svn snapshoot (in RC2 there's no ability to open xrc files).
I haven't tested this option much (I mean editing external xrc files) - Could You reporoduce and send me content of this xrc ?

--- End quote ---
Yes I'm using the latest SVN snapshot (I'm building a plugin for quite a while and now that I found some time I'm more active with it). I am attaching the xrc file that I am talking about. Note that it has been built with wxSmith from scratch

--- Quote from: byo on December 11, 2005, 11:28:19 pm ---Maybe some explanation here:
wxSmith uses it's own format for resource files. In fact it's modified version of xrc but with additional data. Resources managed by wxSmith are in *.wxs files (in wxsmith directory created inside project). There resources can be used to generate source code which build resource or create xrc file for it and class using this xrc file.

--- End quote ---
I 've noticed how it works and the *.wxs files and that's the one I can't get :( (my resource file gets listed under external resources). I was aiming for the code generation functionality when using wxSmith.

--- Quote from: byo on December 11, 2005, 11:28:19 pm ---Currently the best way to use resources is to create them but after adding using wxSmith->Add ... enteries :). (Currently I doin't have enough time to work on wxSmithi but I hope that it will change soon)

--- End quote ---
That's the way I used but then something got mixed up and the dialog loaded to the project wasn't the one I was building. I had the xrc file so I thought that I could just remove the messed up entry and import the one from my xrc ;). There is no rush, I have my dialog working and have written the code I need to use it. The dialog was built in just a few minutes and that's why I said that it's great plugin :)

[attachment deleted by admin]

byo:
Thx for the file - I'll look into it later :).

And thx for using wxSmith for building plugins :D

Navigation

[0] Message Index

[*] Previous page

Go to full version