home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / amiga / programm / 19254 < prev    next >
Encoding:
Text File  |  1993-01-28  |  1.6 KB  |  42 lines

  1. 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
  2. Newsgroups: comp.sys.amiga.programmer
  3. Subject: HELP with E!  Using gadtools
  4. Message-ID: <1993Jan27.234331.1332@uoft02.utoledo.edu>
  5. From: mneylon@jupiter.cse.utoledo.edu (Michael Neylon)
  6. Date: 27 Jan 93 23:43:30 EST
  7. Nntp-Posting-Host: jupiter.cse.utoledo.edu
  8. Lines: 32
  9.  
  10. I'm again having problems with E, so here I go...
  11.  
  12. Using the gadtoolsdemo.e as a backbone to a program, I have created gadgets
  13. the same way the program does (ie through a Context and a linked list). 
  14. Now, I am ready to set up the IDCMP_GADGETUP/DOWN effects, and I need to
  15. be able to reference particular gadgets.  So, following a similar technique
  16. in the RKM in the gadtools chapter, I set a my_gad array element to the
  17. context after each CreateGadget call.  However, when I retrieve back its 
  18. value, I'm not getting the same as the gadget that was just created.  
  19. I've tried several tricks, but with no avail.  Has anyone been able to 
  20. set up something like this?
  21.  
  22. Also, I would like to define the follow C structure in E...
  23. struct card {
  24.     char q[40],a[40];
  25.     int flag;
  26. }
  27.  
  28. I figured that this should work...
  29. OBJECT card
  30.     q[40]:STRING
  31.     a[40]:STRING
  32.     flag
  33. ENDOBJECT
  34.  
  35. But I get errors with this...any ideas?
  36.  
  37. -- 
  38. Michael Neylon   aka Masem the Great and Almighty Thermodynamics GOD!
  39.       //         | Senior, Chemical Engineering, Univ. of Toledo
  40.   \\ // Only the |   Summer Intern, NASA Lewis Research Center
  41. \  \X/   AMIGA!  |         mneylon@jupiter.cse.utoledo.edu           /
  42.