Code::Blocks Forums
User forums => General (but related to Code::Blocks) => Topic started by: papafreebird on March 22, 2008, 09:36:26 pm
-
Hello,
I'm in the process of coding a gui using codeblocks. I have a question about the looks of my executable. If I choose the preview option in codeblocks it shows a nice looking GUI that is clean with nice looking check boxes (see following Pic)
(http://img233.imageshack.us/img233/3632/screenshothcbatchguifordn4.png)
But when you compile and run the project the final executable does not look so nice, it looks duller with much uglier check boxes.
(http://img220.imageshack.us/img220/5258/screenshothcbatchguiforxy5.png)
How do I get my output executable to look like the preview. I'm using linux svn4966 build March 19, 2008. My project is a wxwidgets gui using wxsmith.
Any suggestions would be appreciated.
Mods if there is a better place for this post please feel free to move it.
-
Did you compiled wxwidgets with gtk support? Its strange! Maybe you are running the output application as root or sudo, so is not using your users theme
-
Perhaps the gtk thing is the problem. The wxWidegets I compiled and installed is wxX11. Perhaps I should have compiled wxGTK instead?
-
Perhaps the gtk thing is the problem. The wxWidegets I compiled and installed is wxX11. Perhaps I should have compiled wxGTK instead?
Right. wxSmith uses the look&feel of wxGTK when it's linked against that version of wxWidgets (which is typical on Linux). In fact, you may design an interface on Linux and then use it on Windows. On Windows it'll look different because it's using wxMSW. Same for Mac.
In short, if you want your app to look just like what you designed, be sure to use the same version of wxWidgets Code::Blocks was linked against.
-
Okay still having problems. I downloaded and compiled wxgtk 2.6 and installed it and a still having the same issues. Is there anything I am not doing that I should be.
Here is the way I installed wxgtk 2.6
mkdir buildgtk
> cd buildgtk
> ../configure --with-gtk
> make
> sudo make install
> sudo ldconfig
Am I missing something.
-
Okay I think I solved my problem. I started a new project and under project properties I added gtk+ and it compiled exactly like it looked in the preview!