home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / amiga / programm / 12381 < prev    next >
Encoding:
Text File  |  1992-08-16  |  2.0 KB  |  46 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!cis.ohio-state.edu!csugrad.cs.vt.edu!pmiller
  3. From: pmiller@csugrad.cs.vt.edu (Paul Miller)
  4. Subject: Standard Gadgets with GadTools question...
  5. Message-ID: <714009204.AA28064@csugrad.cs.vt.edu>
  6. Sender: daemon@cis.ohio-state.edu
  7. Organization: The Ohio State University Department of Computer and Information Science
  8. Date: Sun, 16 Aug 1992 23:53:21 GMT
  9. Lines: 35
  10.  
  11. > Subject: gadtools.library
  12. > From: barry.fruitman@canrem.com (barry fruitman)
  13. > Date: 16 Aug 92 18:26:36 GMT
  14. > Organization: Canada Remote Systems
  15. >
  16. > This is a multi-faceted question to all you gadtools programmers.
  17. >
  18. > I'd like to create a window using both 3D-looking button gadgets and
  19. > non-3D buttons, but gadtools only seems able to create 3D buttons.
  20. > So my question is, is there a way to make 2D-looking buttons with
  21. > gadtools?
  22.  
  23. Sure. Use normal CreateGadget() calls for your 3D buttons, and use
  24. the GENERIC_KIND gadget type to get a pointer to a standard Gadget
  25. structure which you can fill out yourself (note that some GadTools
  26. tags will work with these, where appropriate, such as GA_Disabled,
  27. and I believe the Gadget Text field will initialize the IntuiText
  28. GadgetText for you too).
  29.  
  30. Your standard GT_GetIMsg() event loop will work for all, and the
  31. CreateGadget() call will do all the gadget linking for you.
  32.  
  33. > Barry Fruitman
  34. > --
  35. > Canada Remote Systems  - Toronto, Ontario/Detroit, MI
  36. > World's Largest PCBOARD System - 416-629-7000/629-7044
  37.  
  38. -- 
  39. ****************************************************************************
  40. * Paul Miller                         |Nobody cares about my opinion anyway*
  41. * Certified Amiga Developer           |                                    *
  42. * INTERNET: pmiller@csugrad.cs.vt.edu |    - Have a JOLT and a smile! -    *
  43. * ------------------------------------------------------------------------ *
  44. * "What IS it, man?"                                "Happy Happy, Joy Joy" *
  45. ****************************************************************************
  46.