Sign in to follow this  

C/C++ GUI design?

This topic is 4480 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I was wondering if there is a GUI builder that would generate code (prefferably based on GTK+ library) that would look like VB (when making a window). My idea is that, you shouldn't have to learn the actual command needed to create a window (although you should anyway), because if you want to create a C++ program with a GUI, you shouldn't have to reinvent the 'process to create a wheel' over and over again. (in this situation GTK+ are the tools to make a wheel). Here's something I cam up with while writing this post: GTK+ = tools to make a wheel GUI = wheel code to make a GUI (calls to create a window, make buttons, etc.) = process to make a wheel the thing is that the only step that can vary greatly is the actual wheel (lights, spinners, etc), but no matter how complex the program might be, the code to create the GUI on the same library will be strikingly similar ...

Share this post


Link to post
Share on other sites
If learning Win32 is too advanced for you, you could use MFC (Microsoft Foundation Classes). It has form design specifically for C++, and it's layered ontop of the Win32 API. So, if those are too advanced, you should probably look into Visual C++.NET, which is free for Visual Studio 2005 beta 2.

You can download it at:
http://lab.msdn.microsoft.com/express/visualc/default.aspx

Share this post


Link to post
Share on other sites
The difficulties with creating GUI aren't in coding, but in NOT 'hard coding'.

Even if you use a type of GUI creator, similar to the resource editor-- the window sizes, shapes, surfaces all depend on values hard-coded through the GUI builder.

A far better idea would be a scripting language that described rules for window sizes/shapes/surfaces that depend on the size/shape/surface/position of related widgets on the same window.

A flexible, run-time evaluate-able GUI like that is really what you need...

That said... there are quick-n-dirty ways to create GUIs if you're not concerned about quote unquote "good design". VB/MFC are examples, as dxFoo says.

Share this post


Link to post
Share on other sites

This topic is 4480 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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