home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / amiga / programm / 17394 < prev    next >
Encoding:
Internet Message Format  |  1992-12-15  |  2.0 KB

  1. Path: sparky!uunet!vtserf!csugrad!jaker
  2. From: jaker@csugrad.cs.vt.edu (Jake Rose)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Help a 1.3 programmer get started on 2.0
  5. Message-ID: <BzBG56.9o8@csugrad.cs.vt.edu>
  6. Date: 15 Dec 92 19:43:54 GMT
  7. References: <BzB6Ds.K6n@usenet.ucs.indiana.edu>
  8. Organization: Virginia Tech Computer Science Dept, Blacksburg, VA
  9. Lines: 32
  10.  
  11. shulick@navajo.ucs.indiana.edu (Sam Hulick) writes:
  12.  
  13. >I'm still writing apps that work on OS 1.3. :)  I don't know where to
  14. >start learning OS 2.0 specific code.  For instance, how does one make
  15. >the gadgets w/ key shortcuts?  I see them all the time.. i.e. a gadget
  16. >'Help' with the 'H' underlined.  And how do you make cycling gadgets?
  17. >etc. etc.  I need a book that explains what functions to use, how to do
  18. >it, etc.  I have the 'Includes And Autodocs' with all the functions..
  19. >but I have no clue which functions to use to make these things.  Any
  20. >help would be great.. thanks.
  21.  
  22. These are built with GadTools.  GadTools only displays the underscore on
  23. the gadget though - you must handle the VanillaKey event for the letters
  24. yourself.  You can specify any character to be the underscore character
  25. using the GT_Underscore tag and the character you want to use to indicate
  26. that the next character in the gadget's string should be underscored:
  27.  
  28. CreateGadgetA(..., GT_Underscore, '*', ..., TAG_DONE);
  29.  
  30. With the ng_GadgetText field of the NewGadget structure set to
  31. "Wow, What a *Gadget!", would underline the character 'G' when displaying
  32. the GadgetText.
  33.  
  34. >    // Amiga 3000   ___ \ Sam Hulick: shulick@indiana.edu (NeXTmail OK!)
  35. >   // 68030 25 MHz /__/\ \ My opinions wear combat boots.  Or whatever.
  36. >\\// OS 2.04       \__\/ / "Walk!  Not bloody likely.  I am going in a
  37. > \/                     / taxi."  --George Bernard Shaw
  38. -- 
  39.  
  40. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  41. Jake Rose               :: MS Windows: faster than a dead sea turtle crawling up
  42. jaker@csugrad.cs.vt.edu :: the beach with a boxcar on its back, but only just.
  43.