Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
The About Box. Edit the file about.icn using your favorite editor. Some of the methods in the file about.icn are<br />
shown below<br />
#<br />
# aboutdialog is the class created by Ivib in the file about.icn<br />
#<br />
class aboutdialog : Dialog(AboutTxtLst)<br />
...<br />
method init_dialog()<br />
end<br />
method on_aboutdialog(ev)<br />
end<br />
...<br />
end # aboutdialog<br />
We need to fill the Text List with the About information. We could actually have done this from inside Ivib, but<br />
just for fun let's add code to init_dialog() so the Text List is filled when the canvas is displayed. Edit about.icn<br />
and add the following code to the init_dialog() and on_aboutdialog() methods.<br />
method init_dialog()<br />
local l<br />
l := [<br />
"This is an example application",<br />
"To demonstrate an About Box",<br />
"Also, how to show another form",<br />
"Plus: using Makefiles with",<br />
"Ivib"<br />
]<br />
AboutTxtLst.set_contents(l)<br />
end<br />
method on_aboutdialog(ev)<br />
dispose()<br />
end<br />
The Help Screen. Edit the file help.icn using your favorite editor. Some of the methods in the file help.icn are<br />
shown below.<br />
#<br />
# helpdialog is the class created by Ivib in the file help.icn<br />
#<br />
class helpdialog : Dialog(HelpTxtLst, MsgBox)<br />
...<br />
method init_dialog()<br />
end<br />
method on_CloseBtn(ev)<br />
16