> 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
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
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
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: #(
> 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
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
>>
>>
> 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
>
> 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