mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
.gtk
git-svn-id: svn://ultimatepp.org/upp/trunk@5624 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
467ce06429
commit
6f68ba633f
3 changed files with 15 additions and 2 deletions
|
|
@ -1,6 +1,7 @@
|
|||
uses
|
||||
CtrlLib,
|
||||
Gtk;
|
||||
Gtk,
|
||||
RichEdit;
|
||||
|
||||
file
|
||||
main.cpp;
|
||||
|
|
|
|||
|
|
@ -2,4 +2,5 @@
|
|||
#define _GtkMain_icpp_init_stub
|
||||
#include "CtrlLib/init"
|
||||
#include "Gtk/init"
|
||||
#include "RichEdit/init"
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
#include <CtrlLib/CtrlLib.h>
|
||||
#include <RichEdit/RichEdit.h>
|
||||
|
||||
using namespace Upp;
|
||||
|
||||
|
|
@ -108,9 +109,19 @@ CONSOLE_APP_MAIN
|
|||
|
||||
// gtk_init(&argc, &argv);
|
||||
gtk_init(0, NULL);
|
||||
Ctrl::GlobalBackBuffer();
|
||||
|
||||
#if 1
|
||||
MyApp().Run();
|
||||
PromptOK("Hello world!");
|
||||
return;
|
||||
|
||||
RichEditWithToolBar edit;
|
||||
edit.SetQTF("[A500 Hello World!");
|
||||
TopWindow win;
|
||||
win.Add(edit.SizePos());
|
||||
win.Run();
|
||||
|
||||
// MyApp().Run();
|
||||
#else
|
||||
GtkWidget *window;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue