How to work with visual interface in C++?
Well you would need to use one of the available graphics toolkits. I like Qt myself and once you understand the basic signals/slots concept it's pretty easy. They use a styling language very much like CSS to define the look and feel of the GUIs.
To make a graphical user interface you need to use a GUI library. A gui library allows you to draw windows with elements like buttons, text boxes etc, which look like what you do in html.
However there are plenty of gui libraries to choose from and you need to choose the right one for your needs.
On windows for example you have the most elementary Win32 API window controls. These allow you to draw natively designed window elements ( native means which look like other applications on your system, for example notepad, wordpad, calculator).
Other options include the .NET framework with the gui designers. If you are not comfortable with doing everything in the code, then can check out .net.
Apart from these, there are other powerful gui tools like wxwidgets and qt. They allow you to code up gui very fast. and most importantly these libraries are cross platform.
I prefer wxwidgets, due to portability and it being a very thin wrapper over win32 api.
|All times are GMT +1. The time now is 03:51 PM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.