RosettaCodeData/Task/Hello-world-Graphical/HolyC/hello-world-graphical-3.holyc

22 lines
432 B
Text
Raw Permalink Normal View History

2018-06-22 20:57:24 +00:00
import gui
$include "guih.icn"
class WindowApp : Dialog ()
# -- automatically called when the dialog is created
method component_setup ()
# add 'hello world' label
label := Label("label=Hello world","pos=0,0")
add (label)
# make sure we respond to close event
connect(self, "dispose", CLOSE_BUTTON_EVENT)
end
end
# create and show the window
procedure main ()
w := WindowApp ()
w.show_modal ()
end