home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / mac / oop / misc / 213 < prev    next >
Encoding:
Text File  |  1993-01-12  |  2.4 KB  |  55 lines

  1. Newsgroups: comp.sys.mac.oop.misc
  2. Path: sparky!uunet!paladin.american.edu!howland.reston.ans.net!usc!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!ira.uka.de!rz.uni-karlsruhe.de!stepsun.uni-kl.de!kemper
  3. From: kemper@informatik.uni-kl.de (Michael Kemper [RHRK])
  4. Subject: Re: TCL Q: enableCmd ??
  5. Message-ID: <1993Jan12.132001@informatik.uni-kl.de>
  6. Sender: news@rhrk.uni-kl.de
  7. Organization: University of Kaiserslautern
  8. References:  <1iu6jkINNhc@urmel.informatik.rwth-aachen.de>
  9. Date: Tue, 12 Jan 1993 12:20:01 GMT
  10. Lines: 43
  11.  
  12. In article <1iu6jkINNhc@urmel.informatik.rwth-aachen.de>, GRAFF <pier@reze-1.rz.rwth-aachen.de> writes:
  13. |> Hi !
  14. |> 
  15. |> I've got a big problem using TCL: I create a new Menu Item via
  16. |> ResEdit. Then, I add the menu Command after the Name of the Menu,
  17. |> like this:   Show Highscores#4711   (Also in ResEdit :)
  18. |> In my MyDoc - Class I call after the call of inherited::setupMenus()
  19. |> the Bartender:   gBartender->enableCmd(4711);
  20. |> 
  21. |> BUT IT DOESN'T WORK. I tried this call ^^^^^ almoust everywhere, but
  22. |> it didn't worked as well. 
  23. |> 
  24. |> Now, does anybody knows how to enable this (d*mm) menu item?? Where
  25. |> does I have to put the call? And where can I disable it again?
  26. |> 
  27. |>     Thanks
  28. |>     
  29. |>             Jochen
  30. |>             
  31. |> P.S: English is not my native Language, Stig Hemmer ;)
  32. |> P.P.S: Heard about the new Apple products? And the prices? Wow!
  33.  
  34. Hi,
  35.  
  36. normally yoy call EnableCmd and DisableCmd in the UpdateMenus method. This method is called when
  37. the user clicks in the menu bar and handles all menu enabling (in general all menus are disabled
  38. before UpdateMenus is called). The CApplication.UpdateMenus and CDocument.UpdateMenus (sorry I
  39. am a Pascal fan) manage the correct settings for New, Open, Close, Save, etc. (standard items),
  40. but you have to manage your own items by yourself by overriding UpdateMenus in your MyDoc class
  41. (remember to call inherited UpdateMenus).
  42.  
  43. Hope this helps
  44. -- 
  45. \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_
  46.   
  47.   \_        \_  \_  \_    | Michael Kemper
  48.   \__      \__  \_ \_     | University of Kaiserslautern, Germany
  49.   \_\_    \_\_  \_\_      | email: kemper@rhrk.uni-kl.de 
  50.   \_ \_  \_ \_  \__       | 
  51.   \_  \_\_  \_  \_ \_     | Although they gave me that email address,
  52.   \_   \_   \_  \_  \_    | this is not the opinion of rhrk, uni-kl or de!
  53.  
  54. \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_
  55.