[squeak-dev] Re: PluggableTextMorph without smalltalk shortcuts
Tudor Girba
girba at iam.unibe.ch
Sun Aug 9 22:54:12 UTC 2009
Thanks, Andreas.
Unfortunately, I am running on Pharo and there is no TextEditor. Any
idea of what I should subclass if I only have PluggableTextMorph?
Also, how do I get the latest trunk version?
Doru
On 10 Aug 2009, at 00:32, Andreas Raab wrote:
> Tudor Girba wrote:
>> Is there a way to get a PluggableTextMorph without the default
>> Smalltalk shortcuts?
>
> The following is not a long-term solution, but if you're using an
> updated trunk image, try the following and see if this gives you
> what you need (if it does, we'll have to find a way of folding this
> properly into ToolBuilder):
>
> TextMorph defaultEditorClass: TextEditor.
>
> This will use the new (Cuis-based) editor which comes without the
> programming shortcuts. To restore the previous behavior, execute:
>
> TextMorph defaultEditorClass: TextMorphEditor.
>
> Cheers,
> - Andreas
>
>
>> Until now I have something like:
>> (PluggableTextMorph
>> on: textModel
>> text: #text
>> accept: #accept:notifying:
>> readSelection: #selection
>> menu: #menu:shifted:)
>> onKeyStrokeSend: #keystroke:from: to: textModel
>> I can intercept a key like (Cmd+i), but I do not know how to
>> disable the default behavior.
>> Cheers,
>> Doru
>> --
>> www.tudorgirba.com
>> "What we can governs what we wish."
>
>
--
www.tudorgirba.com
"Every thing should have the right to be different."
More information about the Squeak-dev
mailing list
|