home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / windows / intervie / 3460 < prev    next >
Encoding:
Text File  |  1992-12-27  |  1.6 KB  |  53 lines

  1. Newsgroups: comp.windows.interviews
  2. Path: sparky!uunet!stanford.edu!CAD.EE.NTU.EDU.TW!f80204
  3. From: f80204@CAD.EE.NTU.EDU.TW (Hung-Chi Chu)
  4. Subject: Re:  Font size problem.
  5. Message-ID: <9212271349.AA04437@cad.ee.ntu.edu.tw>
  6. Sender: news@shelby.stanford.edu (USENET News System)
  7. Organization: Internet-USENET Gateway at Stanford University
  8. Date: Mon, 28 Dec 1992 03:49:36 GMT
  9. Lines: 42
  10.  
  11. Hi everybody,
  12.     I saw many people found the font size problem of doc. Me too.
  13. After I read the reference manual and idemo source code, I fix
  14. the problem. The problem is due to the "check" menus. Following
  15. is my patch. It simply change the "check" menus to the "radio"
  16. menus.
  17.  
  18. *** iv/src/bin/doc/Menus.c.orig    Wed May 13 06:31:15 1992
  19. --- iv/src/bin/doc/Menus.c    Sat Dec 26 23:29:12 1992
  20. ***************
  21. *** 78,83 ****
  22. --- 78,84 ----
  23.       _viewer = viewer;
  24.       WidgetKit& kit = *WidgetKit::instance();
  25.       String v;
  26. +     TelltaleGroup *group = nil;
  27.       if (!kit.style()->find_attribute(name, v)) {
  28.       return;
  29.       }
  30. ***************
  31. *** 149,158 ****
  32. --- 150,165 ----
  33.               cmd = new Command(viewer, command);
  34.           }
  35.           if (check_item) {
  36. +             if (group == nil) {
  37. +                 group = new TelltaleGroup;
  38. +             }
  39. +             item = kit.radio_menu_item(group, label);
  40. + /*
  41.               item = kit.check_menu_item(label);
  42.               TelltaleState* s = item->state();
  43.               s->set(TelltaleState::is_toggle, false);
  44.               s->set(TelltaleState::is_choosable, true);
  45. + */
  46.           } else {
  47.               item = kit.menu_item(label);
  48.           }
  49.  
  50. --
  51. Hung-Chi Chu   f80204@cad.ee.ntu.edu.tw
  52.     National Taiwan University Electrical Engineering CAD Group
  53.