Need help with small example 
Author Message
 Need help with small example

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



Sat, 13 May 1995 07:16:49 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Help! Need Eiffel small example programs

2. Help - I need Example of Code to Help Print National Characters

3. cw 2.0003, filter box on report properties is too small, need help...mucho

4. need help with small utility

5. Help needed writing small program -- possible?

6. Need help on small programming problem.

7. [Need help: Clock function in smaller unit...

8. Need help: Clock function in smaller unit...

9. Need Help for small Prolog Exercise

10. need a small bit of help

11. Need Help Implementing a Component on Small Talk in a Course

12. nephyte needs f83 examples & examples

 

 
Powered by phpBB® Forum Software