Search found 386 matches

by ike
May 17, 2011 15:26
Forum: Sources, Examples, Tips and Tricks
Topic: Today my boss was not here, so I play with GTK
Replies: 19
Views: 3435

I try glade2bas, It is good, but first I want to learn this

I try glade2bas, It is good, but first I want to learn this way
by ike
May 17, 2011 14:57
Forum: Sources, Examples, Tips and Tricks
Topic: Today my boss was not here, so I play with GTK
Replies: 19
Views: 3435

Thx TJF

GtkDrawingArea and gtk_combo_box_append_text() are deprecated.

How I can use cairo with GTK? Drawing simple lines circles etc
by ike
May 16, 2011 22:32
Forum: Sources, Examples, Tips and Tricks
Topic: Today my boss was not here, so I play with GTK
Replies: 19
Views: 3435

Does anybody have an example like this

1. One main window
2. Two PushButtons
a. draw a line
b. draw a circle
3. Picturebox to draw line and circles using CAIRO

????
by ike
May 16, 2011 22:17
Forum: Sources, Examples, Tips and Tricks
Topic: Today my boss was not here, so I play with GTK
Replies: 19
Views: 3435

AND I HAVE problem with Drawing Area

I don't know how to draw a simple line or circle on drawing_area

when you press button draw line
and secon button draw a circle

Simple, but I can not figure out :( Didnot find any example on the net except
scribble
by ike
May 16, 2011 22:14
Forum: Sources, Examples, Tips and Tricks
Topic: Today my boss was not here, so I play with GTK
Replies: 19
Views: 3435

NOTEBOOK

#include once "gtk/gtk.bi" #define NULL 0 Dim As GtkWidget Ptr label ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' Sub BYBY Cdecl( ) gtk_main_quit () End Sub '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' Sub DOSOMETHING Cdecl( ) print "Hallo" End S...
by ike
May 16, 2011 22:14
Forum: Sources, Examples, Tips and Tricks
Topic: Today my boss was not here, so I play with GTK
Replies: 19
Views: 3435

SIMPLE MENU

#include once "gtk/gtk.bi" #define NULL 0 gtk_init(NULL, NULL) Dim As GtkWidget Ptr win = gtk_window_new(GTK_WINDOW_TOPLEVEL) gtk_window_set_title(GTK_WINDOW(win), "Simple menu") gtk_widget_set_size_request(win, 250, 150) gtk_window_set_position(GTK_WINDOW(win), GTK_WIN_POS_CENT...
by ike
May 16, 2011 22:13
Forum: Sources, Examples, Tips and Tricks
Topic: Today my boss was not here, so I play with GTK
Replies: 19
Views: 3435

MENU 2 this program crashes

'' PROGRAM CRASHES?? #include once "gtk/gtk.bi" #define NULL 0 Sub toggle_statusbar(ByVal widget as GtkWidget Ptr, ByVal statusbar As gpointer) If (gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(widget))) Then gtk_widget_show(statusbar) Else gtk_widget_hide(statusbar) End If End Sub g...
by ike
May 16, 2011 22:12
Forum: Sources, Examples, Tips and Tricks
Topic: Today my boss was not here, so I play with GTK
Replies: 19
Views: 3435

MENU-1

#include once "gtk/gtk.bi" #define NULL 0 gtk_init(NULL, NULL) Dim As GtkWidget Ptr win = gtk_window_new(GTK_WINDOW_TOPLEVEL) gtk_window_set_position(GTK_WINDOW(win), GTK_WIN_POS_CENTER) gtk_window_set_default_size(GTK_WINDOW(win), 250, 200) gtk_window_set_title(GTK_WINDOW(win), "men...
by ike
May 16, 2011 22:11
Forum: Sources, Examples, Tips and Tricks
Topic: Today my boss was not here, so I play with GTK
Replies: 19
Views: 3435

ENTER SIGNAL

' ike 2011 License: public domain #include once "gtk/gtk.bi" #define NULL 0 Sub enter_button Cdecl (Byval widget As GtkWidget Ptr, Byval dat As gpointer) Dim kolor As GdkColor kolor.red = 0: kolor.green = 60000: kolor.blue = 0 gtk_widget_modify_bg(widget, GTK_STATE_PRELIGHT, @kolor) End S...
by ike
May 16, 2011 22:06
Forum: Sources, Examples, Tips and Tricks
Topic: Today my boss was not here, so I play with GTK
Replies: 19
Views: 3435

COMBOBOX

#include once "gtk/gtk.bi" #define NULL 0 Sub combo_changed Cdecl (Byval widget As GtkWidget Ptr, Byval win As gpointer) Dim As gchar Ptr text text = gtk_combo_box_get_active_text(GTK_COMBO_BOX(widget)) gtk_label_set_text(GTK_LABEL(win), text) g_free(text) End Sub gtk_init(NULL, NULL) Dim...
by ike
May 16, 2011 22:06
Forum: Sources, Examples, Tips and Tricks
Topic: Today my boss was not here, so I play with GTK
Replies: 19
Views: 3435

CHECK BOX

#include once "gtk/gtk.bi" #define NULL 0 Sub toggle_title Cdecl (Byval widget As GtkWidget Ptr, Byval win As gpointer) If gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget)) Then gtk_window_set_title(win, "CHECKED") Else gtk_window_set_title(win, "UNCHECKED") End ...
by ike
May 16, 2011 22:05
Forum: Sources, Examples, Tips and Tricks
Topic: Today my boss was not here, so I play with GTK
Replies: 19
Views: 3435

BUTTON

#include once "gtk/gtk.bi" #define NULL 0 gtk_init(NULL, NULL) ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' Dim As GtkWidget Ptr win = gtk_window_new(GTK_WINDOW_TOPLEVEL) gtk_window_set_title(GTK_WINDOW(win), "Close") gtk_widget_set_s...
by ike
May 16, 2011 22:05
Forum: Sources, Examples, Tips and Tricks
Topic: Today my boss was not here, so I play with GTK
Replies: 19
Views: 3435

Today my boss was not here, so I play with GTK

#include once "gtk/gtk.bi" #define NULL 0 gtk_init(NULL, NULL) Dim As GtkWidget Ptr win = gtk_window_new(GTK_WINDOW_TOPLEVEL) gtk_window_set_title(GTK_WINDOW(win), "SHOWBITMAP") gtk_window_set_position(GTK_WINDOW(win), GTK_WIN_POS_CENTER) gtk_window_set_resizable(GTK_WINDOW(win)...
by ike
May 16, 2011 3:26
Forum: Projects
Topic: New IDE
Replies: 66
Views: 33007

Is there any page about project in German?

Is there any page about project in German?

I will use google translate