Hi again, i have a gui code here. The button is half size of the main window and to great. Any idea how to make it smaller ?
_____________________________________________________
GTK2.Widget mainwindow,clickcnt,clicker; int clicks;
void click() { clickcnt->set_text("Clicks: "+(++clicks)); }
int main() { GTK2.setup_gtk(); mainwindow=GTK2.Window(GTK2.WindowToplevel); mainwindow->set_title("Click counter"); mainwindow->set_size_request(600, 500); mainwindow->set_position(GTK2.WIN_POS_CENTER); mainwindow->add(GTK2.Vbox(0,10) ->add(clickcnt=GTK2.Label("There have been no clicks yet")) ->add(clicker=GTK2.Button("Click me")) )->show_all(); mainwindow->signal_connect("delete_event",lambda() {exit(0);}); clicker->signal_connect("clicked",click); return -1; }
-- Sent from: http://pike.1058338.n5.nabble.com/Pike-Dev-f4605220.html