home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / amiga / programm / 13169 < prev    next >
Encoding:
Text File  |  1992-09-08  |  3.8 KB  |  113 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!spool.mu.edu!agate!ames!haven.umd.edu!darwin.sura.net!wupost!usc!sol.ctr.columbia.edu!destroyer!ubc-cs!newsserver.sfu.ca!sfu.ca!epang
  3. From: epang@fraser.sfu.ca (Eugene Pang)
  4. Subject: More GadToolsBox bugs
  5. Message-ID: <epang.715910829@sfu.ca>
  6. Sender: news@sfu.ca
  7. Organization: Simon Fraser University, Burnaby, B.C., Canada
  8. Date: Tue, 8 Sep 1992 00:07:09 GMT
  9. Lines: 102
  10.  
  11. Seeing as how there's some renewed interest in GTB, I thought I'd share my
  12. bug list with you all.  And if Steen Raboel (who's email address I've lost)
  13. is reading this, perhaps you could forward this bug report to GTB's author
  14. on FIDOnet.
  15.  
  16. Feel free to add to the list.  Note these bugs are in GadToolsBox v1.3
  17. 37.111 (18.4.92) [available on FF659]...and not in gadtools.library. 
  18. These bugs are in addition to those mentioned in Jan's TODO list.
  19.  
  20.  
  21. BUGS (some which are more or less the same)
  22. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  23. Button.c:
  24.     *   Can't turn off Disabled or Toggle options for button gadget
  25.         if gadget has a user defined label
  26.  
  27. Checkbox.c:
  28.     *   Can't turn off Disabled or Checked options for checkbox gadget
  29.         if gadget has a user defined label
  30.  
  31.     *   Can't turn off highlit gadget text
  32.  
  33. Cycle.c:
  34.     *   Ignores Disabled option for cycle gadget (new for V37)
  35.  
  36.     *   Can't turn off highlight gadget text
  37.  
  38. ListView.c:
  39.     *   Can't turn off Read Only or Show Selected options for ListView
  40.         gadget
  41.  
  42.     *   Can't turn off highlit gadget text
  43.  
  44. Mx.c:
  45.     *   If you delete all the labels previously entered, you're
  46.         prevented from adding new ones; you get the error message
  47.         "You already have the maximum number of labels entered !"
  48.  
  49. Palette.c:
  50.     *   Can't turn off Disabled option for palette gadget
  51.     
  52.     *   Can't turn off highlit gadget text
  53.  
  54. Scroller.c & Slider.c:
  55.     *   Can't turn off Disabled option for scroller/slider gadgets
  56.  
  57.     *   Can't turn on RelVerify option for scroller/slider gadget
  58.  
  59.     *   Can't turn off highlit gadget text
  60.  
  61. StrInt.c.c:
  62.     *   Can't turn off Disabled option for string or integer gadgets
  63.  
  64.     *   Can't turn off highlit gadget text
  65.  
  66. WindowSpecial.c:
  67.     *   Can't turn off ZOOM option in Edit Tags window; workaround
  68.         is to turn off sizing gadget first (press F10)
  69.         [reported by: d9mats@dtek.chalmers.se]
  70.  
  71. Gen.c:
  72.     *   Fails to write WA_IDCMP flags for gadgets; last two args
  73.         to setmem() transposed on line 211.  See WriteGadToolsBoxIDCMP().
  74.  
  75.        
  76. FIXES
  77. ~~~~~
  78. The highlighting bug can be fixed in the Edit[GadgetType]() functions,
  79. by resetting the variable 'flag' to 0 before the IDCMP loop.
  80.  
  81. The other "can't turn off/on" bugs can probably be fixed in the
  82. Change[GadgetType]() functions by removing the OR symbol in the code
  83. that reads:
  84.  
  85. <    if ( strncmp( slab, "Gadget", 6 ) && strlen( slab )) {
  86. <        strcpy( &eng->en_SourceLabel[0], slab );
  87. !        eng->en_SpecialFlags |= EGF_USERLABEL;
  88. <    } else
  89. <        eng->en_SpecialFlags = 0l;
  90.  
  91. to:
  92.  
  93. >    if ( strncmp( slab, "Gadget", 6 ) && strlen( slab )) {
  94. >        strcpy( &eng->en_SourceLabel[0], slab );
  95. !        eng->en_SpecialFlags = EGF_USERLABEL;
  96. >    } else
  97. >        eng->en_SpecialFlags = 0l;
  98.  
  99. In cases like StrInt.c, this is complicated by the unknown need by
  100. the author to preserve the special flags via a variable called 'spec'.
  101. Caution recommended when fixing these functions.
  102.  
  103. The bug in Mx.c sounds similar to the one already fixed in Cycle.c.
  104.  
  105. To fix the disabled ZOOM checkbox bug in WindowSpecial.c, the code
  106. should disable the checkbox when there is no sizing gadget, not when
  107. there is one.
  108.  
  109. The bug in genc.c can be fixed by patching the executable (if you don't
  110. want to recompile the source).  At about 73382 bytes offset from the
  111. beginning of the GadToolsBox [executable] file, change the hex bytes
  112. << 72 0E 70 00 >> to << 72 00 70 0E >>.
  113.