WinAsm Studio, The Assembly IDE - Free Downloads, Source Code
Articles
Programming Quick Start
32-bit Assembler is Easy
Porting Iczelion tutorials
What is FASM
Hard Drive Recovery
Wiring your own LAN
 
Forum
 

How to work with visual interface in C++?

vikkydonlad
Quote Post


New Member
*

Group: Members
Posts: 1
Member No.: 58572
Joined: 17-June 13


Sponsored Links
I am teaching myself C++, I have downloaded code::blocks and even run my first hello world scripts and a bit more, but so far all the tutorials I have bee using seem to using the shell command to display the data. I mean, when I run the program, I can only see the output from the command line interface, but I actually want to see panels, like the javascript window with button and everything, so, how do I actually call that in C++ terminology, and how can I run a simple hello world script or something similar using it? Is there any link that could show me a simple tutorial using this basic interface, instead of using a black screen to run everythin?
__________________
html5 drupal nyc
PMEmail Poster
Top
dila
Quote Post


New Member
*

Group: Members
Posts: 16
Member No.: 823
Joined: 3-December 04


What you want is a Graphical User Interface. This sort of thing is provided by a widget kit. A few popular ones are Qt, GTK and MFC.

I would recommend Qt because, among other things, it's cross platform (including Android) and includes a browser (powered by Webkit) widget that lets you execute JavaScript from within your application too.

If you download the full installer from the Qt website it even comes with a compiler (mingw) that will let you build the sample applications straight away.

A simple Qt program that brings up an empty window looks like this:

CODE
#include <QApplication>
#include <QTextEdit>

int main(int argv, char **args)
{
   QApplication app(argv, args);

   QTextEdit textEdit;
   textEdit.setText("Hello World!");
   textEdit.show();

   return app.exec();
}


Of course, like MFC, Qt has a drag-and-drop style editor for fast UI layout, but personally I prefer to do everthing from code:

user posted image

Of course coming from an assembly background you might not like the 10mb+ runtime that Qt requires. If it's minimal dependencies that you're looking for then I'd investigate the native windows API for GUI rendering.
PMEmail Poster
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topicStart Poll

 

Sponsors
Computer Science

Internet
C/C++
Hardware & PC maintenance

HiEditor

General Discussions
Suggestions/Bug Reports
WinAsm Studio

General Discussions
Suggestions/Bug Reports
WinAsm Studio FAQ
Multilingual User Interface
Add-Ins
Assembly Programming

Main
Newbies
Projects
Custom Controls
Snippets
Announcements & Rules

Announcements

General

Online Degrees - Distance Learning
The Heap
Russian