Sign in to follow this  
andrei94

Window appearance customization

Recommended Posts

andrei94    134
Hello everyone ! My name is Andrei , i'm 18 and im looking forward being a programmer :D


My big question is how can i change the look of a window so that it wont have the window's basic boring aspect ;D ( i'm working with c++)

Thanks to everyone who post usefull ideeas or advices :D

Share this post


Link to post
Share on other sites
dave    2187
Well if you take an application such as Spotify:

[url="http://cf.scdn.co/u/wp/2008/07/spotify-030.png"]http://cf.scdn.co/u/wp/2008/07/spotify-030.png[/url]

They use Windows Template Library and do all of their own custom drawing. If you want to do this in C++ then that's a pretty good option however you'll find yourself dealing heavily with windows messaging and drawing at quite a primitive level. I played around with WTL recently and to be honest I didn't think it was all that. I found it to be such a light wrapper that it was almost pointless, it's handling of windows messaging is definitely an improvement though. I chose to ditch WTL and just do my custom GUI stuff in a Direct3D window since i was making a 3d editor and wanted an in-engine GUI as well.

The approach you take will depend on the type of application you are writing. Can you give us more information on what you are making?

Share this post


Link to post
Share on other sites
Cornstalks    7030
You could also use [url="http://qt.nokia.com/products/"]Qt[/url]. Qt lets you create a cross platform program (in C++) and create the window layout, and it can either use the native window drawing system (so on OS X, Linux, and Windows you get the native look and feel), or you can customize the rendering (we do this at my work in [url="http://www.sorensonmedia.com/video-encode/"]Squeeze[/url]) to get your own look.

Share this post


Link to post
Share on other sites
Cornstalks    7030
[quote name='Dave' timestamp='1336064519' post='4937144']
Cornstalks. Did you use QT edit to lay that out?
[/quote]
Yes and no. I didn't do it, but yes, Qt Designer was used to design a lot of the widgets. The main window is hard coded C++, but uses our custom widgets to piece the whole window together (for example, the preview window and the preset boxes are different widgets, and the main window class just creates an instance of each and places them). I work GUI-less stuff though, so that's about all I know about the GUI.

Share this post


Link to post
Share on other sites
andrei94    134
well im trying to do a windows app with customized appearance [img]http://public.gamedev.net//public/style_emoticons/default/biggrin.png[/img] with d3d y i know i can do it ... but its used mostly for games...

PS: i dont want to render at a high fps rate.. nor to be real time Edited by andrei94

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this