Simple and free GUI [closed]

The question was asked: 6 years 10 months ago   views: 19

Please tell me what is GUI (any programming language) for windows for which you don't need to write lot of code manually ?

c++ and GTK is not liked, here's an example of helloword:

#include <gtk/gtk.h> static void button_clicked(GtkWidget * widget, gpointer data) { g_print("Button was clicked!\n"); } static gboolean delete_event(GtkWidget * widget, GdkEvent * event, gpointer data) { g_print("Delete event occurred\n"); return FALSE; } static void destroy(GtkWidget * widget, gpointer data) { g_print("Destroy signal was sent\n"); gtk_main_quit(); } int main(int argc, char ** argv) { GtkWidget * window; GtkWidget * button; const gchar * title = "Hello World!"; gtk_init(&argc, &argv); window = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_window_set_title(GTK_WINDOW(window), title); gtk_container_set_border_width(GTK_CONTAINER(window), 10); g_signal_connect(G_OBJECT(window), "delete_event", G_CALLBACK(delete_event), NULL); g_signal_connect(G_OBJECT(window), "destroy", G_CALLBACK(destroy), NULL); button = gtk_button_new_with_label("Quit"); g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(button_clicked), NULL); g_signal_connect_swapped(G_OBJECT(button), "clicked", G_CALLBACK(gtk_widget_destroy), G_OBJECT(window)); gtk_container_add(GTK_CONTAINER(window), button); gtk_widget_show(button); gtk_widget_show(window); gtk_main(); return 0; }
Asked: 27-10-2012 в 16:32:50
The programming language of any possible? #!/usr/bin/wish wm title . {Hello World!} pack [button .b -text Quit -command exit-padx 2cm] Example is, of course, under linux, but tcl/tk under Windows is. And it works fine. (Of course, it can C be rewritten. Lines a little more. But not much more) - 27-10-2012 в 17:17:37
It is, in your opinion, a lot of code? Are you still using WinAPI not tried programming. - 27-10-2012 в 19:49:52

Answers   3


That means a lot of code manually?

You will see for yourself. A little list I'll provide.

  1. MFC;
  2. Qt;
  3. GTK+;
  4. wxWindows, now wxWidgets;
  5. FLTK
  6. Ultimate++

Try on each to make your of Hello world and assess which of the toolkits like more.

Answered: 27-10-2012 в 16:34:59
well, in c# : private void button1_Click(object sender, EventArgs e) { label1.Text = "Hello World!"; } manually I've only written to label1.Text = "Hello World!"; everything else is generate automatically (threw on a form button and label) only .net, Winforms seems to be only in the paid version of Visual Studio - 27-10-2012 в 16:43:10
Uh-uh.... Tady you need VCL to write under Emcarcadero RAD C++ Builder... the Thing is that in C++ in the original library there is no count. funds. They are mounted on third-party libraries. And each of the developers of development tools marketing its development. Not surprisingly, MSVC++ by default MFC slips. Similarly bilder by default, oriented to the work with VCL. And it is possible to write exactly as Your example on Sharpe. Another issue is that the Builder would need to buy. - 27-10-2012 в 16:44:11

Currently, the most advanced GUI under Windows is WPF .NET. For the Hello World code is not required at all. Should the project default, in the layout add the text:

<Grid> <TextBlock Text="Hello World!" /> </Grid>
Answered: 27-10-2012 в 16:52:30
and it's free? more precisely, in order to use WPF do not need to buy Visual Studio? - 27-10-2012 в 17:05:24
Visual Studio Express is free. But it is possible and without it, even though it's uncomfortable. - 27-10-2012 в 17:08:33

Visual Studio 2012 Express for Windows Desktop

Visual Studio Express 2012 for Windows Desktop to build powerful desktop application in C#, Visual Basic, and C++. You can use these client-side technologies like Windows Presentation Foundation (WPF), Windows Forms, and Win32. After installation, you can use the product for 30 days. To use the product after 30 days you need to register and get a free product key.

Answered: 27-10-2012 в 20:10:26