home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 4124 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: mn5.swip.net!news
  2. From: roland.bengtsson@mbox3.swipnet.se (Roland Bengtsson)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Accessing NUMBER type in GADTOOLS
  5. Date: 14 Feb 1996 21:00:50 GMT
  6. Organization: -
  7. Message-ID: <775.6618T1277T1963@mbox3.swipnet.se>
  8. References: <4f6ma8$rd8@celebrian.otago.ac.nz>
  9. NNTP-Posting-Host: dialup103-7-11.swipnet.se
  10. X-Newsreader: THOR 2.22 (Amiga;TCP/IP)
  11.  
  12.  
  13.  >:Could anyone tell me how to access the integer information of a NUMBER
  14.  >:type GadTools gadget??  I know I should have the RKM's, but I'm poor :)
  15.  
  16. #define GetNumber(g)      (((struct StringInfo * )g->SpecialInfo )->LongInt)
  17.  
  18. g is a pointer to the gadget.
  19.  
  20. Usage:
  21.  
  22. number = GetNumber(mygadget);
  23.  
  24. -- 
  25.                               \|/
  26. Thor 2.22 #1497               @ @
  27. +--------------------------oOO-(_)-OOo----------+
  28. | _ //       |                                  |
  29. | \X/        |Falkenberg, Westcoast of Sweden   |
  30. |A3000/10MB  |                                  |
  31. |280HD/28.8  |Please write where YOU live!      |
  32. |GVP Spectrum|                                  |
  33. |AFS Pro     |Amiga-Programmer in C             |
  34. +------------+----------------------------------+
  35.  
  36. --
  37.  
  38.