Re: [Pharo-users] Spec TextModel

2015-03-27 Thread Sven Van Caekenberghe
> On 27 Mar 2015, at 11:37, Peter Uhnák wrote: > > Either TextModel should have configuration methods #beForCode and #beForText > or there should be TextModel and a CodeModel (sub)class. > > And from what you say, the plain variant is not even provided in Spec. > > I agree, please open issue

Re: [Pharo-users] Spec TextModel

2015-03-27 Thread Peter Uhnák
> > Either TextModel should have configuration methods #beForCode and > #beForText or there should be TextModel and a CodeModel (sub)class. > > And from what you say, the plain variant is not even provided in Spec. I agree, please open issue for it. Peter

Re: [Pharo-users] Spec TextModel

2015-03-27 Thread Sven Van Caekenberghe
Thanks, Peter. This will help for now. But my real point is indeed that the name is wrong. Either TextModel should have configuration methods #beForCode and #beForText or there should be TextModel and a CodeModel (sub)class. And from what you say, the plain variant is not even provided in Spec

Re: [Pharo-users] Spec TextModel

2015-03-27 Thread Peter Uhnák
Hi, try this TextModel new isCodeCompletionAllowed: false; menuHolder: []; openWithSpec The second line disabled code completion, and the third disables right-click menu. Disabling shortcuts may be a little more complex. From wha

Re: [Pharo-users] Spec - TextModel whenTextIsAccepted

2013-11-07 Thread Benjamin
Somehow it’s true. And you could try it :) But while doing Spec I also fixed a lot of bugs in the morphic widgets themselves :) Try with the latest spec, and tell me :P Ben On 07 Nov 2013, at 05:38, Bahman Movaqar wrote: > On 11/06/2013 20:35, Benjamin wrote: >> Ok :) >> >> These methods onl

Re: [Pharo-users] Spec - TextModel whenTextIsAccepted

2013-11-06 Thread Bahman Movaqar
On 11/06/2013 20:35, Benjamin wrote: > Ok :) > > These methods only exists in Pharo 3.0 :) Hmm...I don't understand. Please correct me if I'm wrong but I thought Spec is a UI library, so it doesn't matter if I'm using it in Pharo 2.0 or 3.0 as long as I have the correct version of Spec. > > > On

Re: [Pharo-users] Spec - TextModel whenTextIsAccepted

2013-11-06 Thread Benjamin
Ok :) These methods only exists in Pharo 3.0 :) Ben On 06 Nov 2013, at 08:38, Bahman Movaqar wrote: > On 11/06/2013 11:07, Benjamin wrote: >> In which version of Pharo are you working ? > > Pharo2.0 > Latest update: #20607 > >> >> On 06 Nov 2013, at 08:31, Bahman Movaqar wrote: >> >>> On

Re: [Pharo-users] Spec - TextModel whenTextIsAccepted

2013-11-06 Thread Benjamin
That’s correct :) Even if the version I proposed you to initialise widgets >> textName := self newTextInput. >> labelGreeting := self newLabel. >> buttonGreet := self newButton. is the new way to do it :) Ben On 06 Nov 2013, at 11:21, Bahman Movaqar wrote: > On 11/06/2013 10:41, Benjamin wrot

Re: [Pharo-users] Spec - TextModel whenTextIsAccepted

2013-11-06 Thread Bahman Movaqar
On 11/06/2013 10:41, Benjamin wrote: > This is the expected behaviour :) > But what you can do (and actually what you wanna do) is to accept the > text at each keyStroke :) > >> initializePresenter >> self instantiateModels: #( >> textName TextModel >> labelGreeting

Re: [Pharo-users] Spec - TextModel whenTextIsAccepted

2013-11-05 Thread Bahman Movaqar
On 11/06/2013 11:07, Benjamin wrote: > In which version of Pharo are you working ? Pharo2.0 Latest update: #20607 > > On 06 Nov 2013, at 08:31, Bahman Movaqar > wrote: > >> On 11/06/2013 10:56, Benjamin wrote: >>> On 06 Nov 2013, at 08:21, Bahman Movaqar >>

Re: [Pharo-users] Spec - TextModel whenTextIsAccepted

2013-11-05 Thread Benjamin
In which version of Pharo are you working ? Ben On 06 Nov 2013, at 08:31, Bahman Movaqar wrote: > On 11/06/2013 10:56, Benjamin wrote: >> On 06 Nov 2013, at 08:21, Bahman Movaqar > > wrote: >> >>> On 11/06/2013 10:41, Benjamin wrote: This is the expected behavio

Re: [Pharo-users] Spec - TextModel whenTextIsAccepted

2013-11-05 Thread Bahman Movaqar
On 11/06/2013 10:56, Benjamin wrote: > On 06 Nov 2013, at 08:21, Bahman Movaqar > wrote: > >> On 11/06/2013 10:41, Benjamin wrote: >>> This is the expected behaviour :) >> >> Oh! A bit unorthodox, specially considering the shortcut (CTRL+S) >> --I was expecting somethin

Re: [Pharo-users] Spec - TextModel whenTextIsAccepted

2013-11-05 Thread Benjamin
On 06 Nov 2013, at 08:21, Bahman Movaqar wrote: > On 11/06/2013 10:41, Benjamin wrote: >> This is the expected behaviour :) > > Oh! A bit unorthodox, specially considering the shortcut (CTRL+S) --I was > expecting something like ENTER :-) There is also acceptOnCr :) > >> But what you can do

Re: [Pharo-users] Spec - TextModel whenTextIsAccepted

2013-11-05 Thread Bahman Movaqar
On 11/06/2013 10:41, Benjamin wrote: > This is the expected behaviour :) Oh! A bit unorthodox, specially considering the shortcut (CTRL+S) --I was expecting something like ENTER :-) > But what you can do (and actually what you wanna do) is to accept the > text at each keyStroke :) > >> initializ

Re: [Pharo-users] Spec - TextModel whenTextIsAccepted

2013-11-05 Thread Benjamin
This is the expected behaviour :) But what you can do (and actually what you wanna do) is to accept the text at each keyStroke :) > initializePresenter > self instantiateModels: #( > textName TextModel > labelGreetingLabelModel > buttonGreetButton