Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
more interesting to tell the dialog what code to execute (namely, a call to the procedure p() mentioned earlier)<br />
when the "go" button is clicked. Go over to the Events tab, click on Add, and associate a method on_go() with<br />
ACTION_EVENT by clicking the Apply button.<br />
Click OK, and then save your file. At this point if you go into file go.icn and look at the code, the Dialog has an<br />
empty method<br />
method on_go(ev)<br />
end<br />
into which we can insert a call to p() using the ui IDE, or emacs or another text editor:<br />
method on_go(ev)<br />
p()<br />
end<br />
Save go.icn with this call to p() added, and then compile go.icn and p.icn together (unicon go p), and run it<br />
(./go). If successful, this application will run as described and write "Hello, world" to standard output when you<br />
click the button.<br />
Warning! Editing your file with Ivib and a text editor at the same time makes it easy for you to overwrite<br />
6