home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!europa.eng.gtefsd.com!paladin.american.edu!howland.reston.ans.net!zaphod.mps.ohio-state.edu!malgudi.oar.net!uoft02.utoledo.edu!jupiter!mneylon
- Newsgroups: comp.sys.amiga.programmer
- Subject: HELP with E! Using gadtools
- Message-ID: <1993Jan27.234331.1332@uoft02.utoledo.edu>
- From: mneylon@jupiter.cse.utoledo.edu (Michael Neylon)
- Date: 27 Jan 93 23:43:30 EST
- Nntp-Posting-Host: jupiter.cse.utoledo.edu
- Lines: 32
-
- I'm again having problems with E, so here I go...
-
- Using the gadtoolsdemo.e as a backbone to a program, I have created gadgets
- the same way the program does (ie through a Context and a linked list).
- Now, I am ready to set up the IDCMP_GADGETUP/DOWN effects, and I need to
- be able to reference particular gadgets. So, following a similar technique
- in the RKM in the gadtools chapter, I set a my_gad array element to the
- context after each CreateGadget call. However, when I retrieve back its
- value, I'm not getting the same as the gadget that was just created.
- I've tried several tricks, but with no avail. Has anyone been able to
- set up something like this?
-
- Also, I would like to define the follow C structure in E...
- struct card {
- char q[40],a[40];
- int flag;
- }
-
- I figured that this should work...
- OBJECT card
- q[40]:STRING
- a[40]:STRING
- flag
- ENDOBJECT
-
- But I get errors with this...any ideas?
-
- --
- Michael Neylon aka Masem the Great and Almighty Thermodynamics GOD!
- // | Senior, Chemical Engineering, Univ. of Toledo
- \\ // Only the | Summer Intern, NASA Lewis Research Center
- \ \X/ AMIGA! | mneylon@jupiter.cse.utoledo.edu /
-