Re: [Pharo-users] spec and double click

2013-11-23 Thread Lorenz Köhl
> If you are in a hurry, I know such a behaviour is present in EyeInspector Thanks. I found handlesDoubleClick: true there and it works now Lo

Re: [Pharo-users] spec and double click

2013-11-23 Thread Benjamin
I will have a look tomorrow :) If you are in a hurry, I know such a behaviour is present in EyeInspector Ben On 24 Nov 2013, at 00:07, Lorenz Köhl wrote: > > On Nov 23, 2013, at 7:37 PM, Benjamin > wrote: > >> m := NewListModel new >> m doubleClickAction: [ self halt ] >> >> m openWithSpe

Re: [Pharo-users] spec and double click

2013-11-23 Thread Lorenz Köhl
On Nov 23, 2013, at 7:37 PM, Benjamin wrote: > m := NewListModel new > m doubleClickAction: [ self halt ] > > m openWithSpec your code and the following (double clicking the list items) doesn't work for me in Pharo3.0 Latest update: #30591 m := NewListModel new items: #(a b c). m doubleClic

Re: [Pharo-users] spec and double click

2013-11-23 Thread Benjamin
m := NewListModel new m doubleClickAction: [ self halt ] m openWithSpec This should work Ben On 23 Nov 2013, at 19:23, Lorenz Köhl wrote: >> I strongly suggest to use 30 because spec changed a lot. > > Doesn't seem to work either (on yesterdays 30): > > | m | > m := ListModel new items: #(

Re: [Pharo-users] spec and double click

2013-11-23 Thread Lorenz Köhl
> I strongly suggest to use 30 because spec changed a lot. Doesn't seem to work either (on yesterdays 30): | m | m := ListModel new items: #(a b c). m when: #doubleClick send: #traceCr to: Transcript. m on: #doubleClick send: #traceCr to: Transcript. "need doubleclick announcement?" m openWithSp

Re: [Pharo-users] spec and double click

2013-11-23 Thread Stéphane Ducasse
On Nov 23, 2013, at 6:55 PM, Lorenz Köhl wrote: >> Did you check the when* API of ListComposableModel? > > Yes, the closest thing might be whenSelectionChanged but nothing regarding > click events as I see it. > >>> >>> How do I register the event handler? I know about on:send:to >> >>

Re: [Pharo-users] spec and double click

2013-11-23 Thread Lorenz Köhl
> Did you check the when* API of ListComposableModel? Yes, the closest thing might be whenSelectionChanged but nothing regarding click events as I see it. >> >> How do I register the event handler? I know about on:send:to > > when:send:to: In my ComposableModel the ListComposable model

Re: [Pharo-users] spec and double click

2013-11-23 Thread Stéphane Ducasse
> > I have a ListComposableModel rendered with spec that I want to do something > if an element is double clicked. for double clicked I do not know. Did you check the when* API of ListComposableModel? > > How do I register the event handler? I know about on:send:to when:send:to: > but w