Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
|
|
@ -0,0 +1,31 @@
|
|||
import gui
|
||||
$include "guih.icn"
|
||||
|
||||
procedure main()
|
||||
SimpleWindow().show_modal()
|
||||
end
|
||||
|
||||
class SimpleWindow : Dialog(label, button, count)
|
||||
method component_setup()
|
||||
self.set_attribs("size=222,139")
|
||||
label := Label()
|
||||
label.set_pos("24", "24")
|
||||
label.set_internal_alignment("l")
|
||||
label.set_label("There have been no clicks yet.")
|
||||
self.add(label)
|
||||
button := TextButton()
|
||||
button.set_pos(24, 53)
|
||||
button.set_label("click me")
|
||||
button.set_internal_alignment("c")
|
||||
button.connect(self, "incr", ACTION_EVENT)
|
||||
self.add(button)
|
||||
end
|
||||
|
||||
method incr()
|
||||
/count := 0
|
||||
label.set_label("There have been "||(count+:=1)||" clicks.")
|
||||
end
|
||||
|
||||
initially
|
||||
self.Dialog.initially()
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue