Re: 7GUIs

new topic     » goto parent     » topic index » view thread      » older message » newer message

That's a good idea - here's the first:

include GtkEngine.e 
 
integer ct = 0 
 
constant  
 win = create(GtkWindow,"size=150x50,border=10,$destroy=Quit"), 
 box = create(GtkBox,"homogeneous=TRUE"), 
 T = create(GtkEntry,"width-chars=10,text=0"), 
 B = create(GtkButton,"Count","CountUp") 
 add(box,{T,B}) 
 add(win,box) 
  
show_all(win) 
main() 
 
global function CountUp() 
 ct += 1 
 return set(T,"text",ct) 
end function 
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu