home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.eiffel
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!torn!maccs!pkerr
- From: pkerr@maccs.dcss.mcmaster.ca (Paul Kerr)
- Subject: Need help with small example
- Message-ID: <1992Nov23.231649.18236@maccs.dcss.mcmaster.ca>
- Organization: Department of Computer Science, McMaster University
- Date: Mon, 23 Nov 1992 23:16:49 GMT
- Lines: 69
-
- Gidday,
-
- I am having a problem with a small example I am trying to write.
-
- What I am trying to create is a HELP class which inherits from the
- WINDOW class and adds the features needed to popup a window and display
- help text. This HELP class can then be used by any application to present
- help to a user.
-
- I havent much so far but what I do have of the help class is presenting
- some really wierd errors (I actually lose the connection to the SUN I
- am connected to). Any help would be appreciated muchly!
-
- Here is the help window class (called window_demo here)
-
- class WINDOW_DEMO
- inherit
- WINDOW
- feature
-
- win: WINDOW;
-
- Create is
- do
- win.Create;
- win.put_at (5, 5);
- win.set_width (10);
- win.set_height (10);
- win.set_frame;
- win.display
- rescue
- reset_device
- end; -- Creawin
-
- end -- class WINDOW_DEMO
-
-
- -----------------------------
- Here is the SDF
-
- ------------ EIFFEL SYSTEM DESCRIPTION FILE -------------------
- -- For simple uses, just replace ``root_class_name'' below
- -- by the name of the root class of your system (lower case)
- ROOT: window_demo
- UNIVERSE: /usr/local/eiffel/Eiffel/library/structures
- /usr/local/eiffel/Eiffel/library/support
- /usr/local/eiffel/Eiffel/library/winpack/window
- /usr/local/eiffel/Eiffel/library/winpack/editor
- EXTERNAL: /usr/local/eiffel/Eiffel/files/pack.a -ltermcap
- NO_ASSERTION_CHECK (N):
- PRECONDITIONS (Y): ALL
- ALL_ASSERTIONS (N):
- DEBUG (N):
- TRACE (N):
- OPTIMIZE (N):
- GARBAGE_COLLECTION (N)
- VIRTUAL_MEMORY (N)
- C_PACKAGE (N):
- C_EXTERNAL:
- MAKE:
- VISIBLE (N):
-
-
- --------------------------
-
- Thanks in advance!
- Paul
-
-
-