Article View: comp.sys.mac.oop.misc
Article #145Re: TCL Q: enableCmd ??
From: Michael Kemper [RHRK]
Date: Tue, 12 Jan 1993 12:20
Date: Tue, 12 Jan 1993 12:20
43 lines
2463 bytes
2463 bytes
In article <1iu6jkINNhc@urmel.informatik.rwth-aachen.de>, GRAFF <pier@reze-1.rz.rwth-aachen.de> writes: |> Hi ! |> |> I've got a big problem using TCL: I create a new Menu Item via |> ResEdit. Then, I add the menu Command after the Name of the Menu, |> like this: Show Highscores#4711 (Also in ResEdit :) |> In my MyDoc - Class I call after the call of inherited::setupMenus() |> the Bartender: gBartender->enableCmd(4711); |> |> BUT IT DOESN'T WORK. I tried this call ^^^^^ almoust everywhere, but |> it didn't worked as well. |> |> Now, does anybody knows how to enable this (d*mm) menu item?? Where |> does I have to put the call? And where can I disable it again? |> |> Thanks |> |> Jochen |> |> P.S: English is not my native Language, Stig Hemmer ;) |> P.P.S: Heard about the new Apple products? And the prices? Wow! Hi, normally yoy call EnableCmd and DisableCmd in the UpdateMenus method. This method is called when the user clicks in the menu bar and handles all menu enabling (in general all menus are disabled before UpdateMenus is called). The CApplication.UpdateMenus and CDocument.UpdateMenus (sorry I am a Pascal fan) manage the correct settings for New, Open, Close, Save, etc. (standard items), but you have to manage your own items by yourself by overriding UpdateMenus in your MyDoc class (remember to call inherited UpdateMenus). Hope this helps -- \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_ \_ \_ \_ \_ | Michael Kemper \__ \__ \_ \_ | University of Kaiserslautern, Germany \_\_ \_\_ \_\_ | email: kemper@rhrk.uni-kl.de \_ \_ \_ \_ \__ | \_ \_\_ \_ \_ \_ | Although they gave me that email address, \_ \_ \_ \_ \_ | this is not the opinion of rhrk, uni-kl or de! \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_
Technical Details
Message-ID:
<1993Jan12.132001@informatik.uni-kl.de>Path:
arc1-ca.pugleaf.net!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!kemperReferences:
<1iu6jkINNhc@urmel.informatik.rwth-aachen.de>Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.mac.oop.misc Path: arc1-ca.pugleaf.net!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 From: kemper@informatik.uni-kl.de (Michael Kemper [RHRK]) Subject: Re: TCL Q: enableCmd ?? Message-ID: <1993Jan12.132001@informatik.uni-kl.de> Sender: news@rhrk.uni-kl.de Organization: University of Kaiserslautern References: <1iu6jkINNhc@urmel.informatik.rwth-aachen.de> Date: Tue, 12 Jan 1993 12:20:01 GMT Lines: 43