marking active menu items
romain.robbes at lu.unisi.ch
Fri Jan 20 15:47:14 UTC 2006
Il giorno Jan 19, 2006, alle ore 7:17 PM, Chris Muller ha scritto:
> So I take it you are not interested in only showing
> active items.. As far as I know, MenuItemMorphs don't
> have a 'enabled' boolean but you could probably
> subclass MenuItemMorph to add it..
actually it does: you just have to call
MenuItemMorph >> isEnabled:
> Re: 3.8 debugger display issue.. I noticed an issue
> in the debugger too related to the code it
> *hightlights*, but only when Shout was enabled. If
> Shout is disabled in the Preferences (sorry can't try
> it now myself, not at a Squeak computer) is it still a
> - Chris
>> Message: 28
>> Date: Wed, 18 Jan 2006 19:22:06 -0500
>> From: Ralph Boland <rpboland at gmail.com>
>> Subject: marking active menu items
>> To: squeak-dev at lists.squeakfoundation.org
>> <fd59e9e70601181622v3d8bc190p at mail.gmail.com>
>> Content-Type: text/plain; charset="iso-8859-1"
>> I need to create a menu in which the selectable
>> items (MenuItemMorphs)
>> are sometimes active and sometimes inactive.
>> For inactive items nothing is done when they are
>> selected from the menu.
>> Currently, I plan to indicate the difference by
>> using a line (MenuLineMorph)
>> to separate the items into two groups with the
>> active items above.
>> I consider this to be a poor solution for various
>> reasons. I wonder if
>> anyone can propose
>> a better solution and preverably a more standard
>> solution to this problem.
>> The simpler and more portable the solution the
>> Currently, I am using Squeak 3.6. I will soon be
>> porting to 3.7 so I can
>> use a Squeak 3.7 solution.
>> Porting to 3.8 has been delayed because displaying a
>> method in the debugger
>> displays the wrong text in a method. The displayed
>> text is off by one
>> character for each assignment
>> operator preceding the displayed text.
>> (The displayed text is the text of the current
>> message send in the method)
>> I am using the Linux version of Squeak.
>> Ralph Boland
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
More information about the Squeak-dev