Hi Benjamin and Hernán,
I found few time to make a little example of ListView (extend TreeModel).
I hosted it in my wiki :
ListViewModel Example
http://ijintek.fr/wiki/doku.php?id=spec_examples#listview_example
The only specific point it's to well define the displayBlock block an that's
all.
Glenn,
thanks for posting the link !
Robert
On 3 March 2014 12:15, Glenn Cavarlé gl...@cavarle.fr wrote:
Hi Benjamin and Hernán,
I found few time to make a little example of ListView (extend TreeModel).
I hosted it in my wiki :
ListViewModel Example
Thanks for the pointer :)
Why do you subclass TreeModel instead of using one?
Could you add an example and a screenshot so we can see how it looks :)
Thanks,
Ben
On 03 Mar 2014, at 17:15, Glenn Cavarlé gl...@cavarle.fr wrote:
Hi Benjamin and Hernán,
I found few time to make a little
Ops, i forgot to write the use case of the ListViewModel... i added it...
I subclass TreeModel to create a native Spec component like ListModel or
DropListModel, which does simply what it is supposed to do, show a list of
ComposableModel.
It's just for the example, i made it also using
On 01 Mar 2014, at 06:18, Hernán Morales Durand hernan.mora...@gmail.com
wrote:
Did you have progress with that ListView in Spec?
Anything to check in the repo?
You can experiment a bit based on this script[1] using the latest Spec code.
Ben
[1]
Thanks Benjamin, I will try to build something and let you know.
Cheers,
Hernán
2014-03-02 10:11 GMT-03:00 Benjamin benjamin.vanryseghem.ph...@gmail.com:
On 01 Mar 2014, at 06:18, Hernán Morales Durand hernan.mora...@gmail.com
wrote:
Did you have progress with that ListView in Spec?
Thanks for interest,
I had a lot of problems i had to resolved before continue my work on
ListView.
it's possible to do a ListView like with MorphTreeModel (example:
SimpleGridExample) and i'm seeing what it's possible to do simply with Spec
TreeModel.
I try to post an example in this thread,
Did you have progress with that ListView in Spec?
Anything to check in the repo?
Cheers,
Hernán
2014-02-05 15:15 GMT-03:00 Benjamin benjamin.vanryseghem.ph...@gmail.com:
Ok :)
So displayBlock can return any morph you want :)
So I think you can do this quite easily :)
I will have a
Hi,
I have looked at the TreeModel class and it's not exactly that i seek.
The idea is rather something like that :
MyListModelinitializeWidgets
title := self newLabel.
manager := self newListManager.
manager model:#MyDummyItemModel
MyListModel classdefaultSpec
^SpecLayout
hi glenn
were are you located?
Because if you are around lille you should come to hack with us :)
Stef
On 05 Feb 2014, at 11:54, Glenn Cavarlé gl...@cavarle.fr wrote:
Hi,
I have looked at the TreeModel class and it's not exactly that i seek.
The idea is rather something like that :
I think the widget to look at is TreeModel :)
Do you have an image showing what you would like?
Ben
On 05 Feb 2014, at 00:58, Glenn Cavarlé gl...@cavarle.fr wrote:
Hi all,
i'm new (first post) and my english is very poor so please don't blame me
:).
I would like to use Spec for display a
Thanks for your reply,
I haven't an image but google yes :)
An example with Android ListView:
http://www.codelearn.org/android-tutorial/assets/list_view/list-view-example-1-95973c43c6eed64af57c7e050981966b.jpg
Hi,
I tested it it without hurrying today.
Using Cmd+s with 'whenTextIsAccepted:' works both on Pharo 2.0 and 3.0.
Unfortunately I exchanged the TextModel with TextInputFieldModel where it
did not work.
However, using 'whenTextChanged:' does not work or at least not how I
expect it to work.
From
Text is accepted when you “save” it (cmd+s)
Ben
On 24 Oct 2013, at 14:05, Manfred Kröhnert mkroehner...@googlemail.com wrote:
Hi everyone,
I finally got around to check back on a Spec question that popped up about
two weeks ago.
At that time I was giving Spec a first try and gathered
Hey,
Accepting a text usually means the is compiled. To accept a text, right
click on it, then click accept in the contextual menu (at the bottom). You
can also do it with Cmd+s on Mac.
Try again and tell us if the #whenTextIsAccepted: works fine in your image
or not.
Best,
2013/10/24
Hello Ben and Clément,
thanks for the quick reply.
But even when I hit Cmd+s the Text of the label stays the same and the
button is not enabled.
No matter if I use 'whenTextChanged:' or 'whenTextIsAccepted:'.
I only tested this in the Pharo 2.0 image.
Best,
Manfred
On Thu, Oct 24, 2013 at
Can you try in 3.0, since Spec changed *a lot* in the meantime
Ben
On 24 Oct 2013, at 14:25, Manfred Kröhnert mkroehner...@googlemail.com wrote:
Hello Ben and Clément,
thanks for the quick reply.
But even when I hit Cmd+s the Text of the label stays the same and the button
is not
Yes, I can do that but it'll have to wait until tomorrow.
Will report back, soon.
Thanks for the help so far,
Manfred
On Thu, Oct 24, 2013 at 2:29 PM, Benjamin
benjamin.vanryseghem.ph...@gmail.com wrote:
Can you try in 3.0, since Spec changed *a lot* in the meantime
Ben
On 24 Oct 2013,
Ok :)
Thank you, and see you tomorrow :P
Ben
On 24 Oct 2013, at 14:34, Manfred Kröhnert mkroehner...@googlemail.com wrote:
Yes, I can do that but it'll have to wait until tomorrow.
Will report back, soon.
Thanks for the help so far,
Manfred
On Thu, Oct 24, 2013 at 2:29 PM,
19 matches
Mail list logo