home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Enigma Amiga Life 106
/
EnigmaAmiga106CD.iso
/
www
/
afc
/
afc-dir
/
stringnode_examples.lha
/
Examples
/
EasyGUI_Example.e
< prev
next >
Wrap
Text File
|
1997-09-09
|
835b
|
41 lines
/*
** StringNode Example-6
**
** A more complex example using ListView AND EasyGUI!
**
** add(), addr(), methods.
**
** (C)Copyright 1995 Fabio Rotondo
**
** e-mail: fosft@intercom.it
*/
OPT OSVERSION = 37
OPT LARGE
MODULE 'afc/StringNode', -> Our MAGIC MODULE
'afc/explain_exception',
'tools/easygui'
PROC main() HANDLE
DEF n:PTR TO stringnode -> This is our OBJECT instance
NEW n.stringnode() -> OBJECT initialization
n.add('Zorro') -> Here we add some items...
n.add('Batman')
n.add('Superman')
n.add('Gold Drake')
n.add('Mandrake')
n.add('MOMMY')
easyguiA('StringNode Demo!',
[LISTV, 1, 'Items:', 5,5, n.addr(), TRUE, 0, 0]) -> the addr() method!
EXCEPT DO
explain_exception()
END n -> Remember ALWAYS TO end an OBJECT
ENDPROC