Autoupdate of playground contents up to the last keystroke

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Autoupdate of playground contents up to the last keystroke

Offray Vladimir Luna Cárdenas-2

Hi,

Grafoscopio uses Doru's suggestion for auto-updating its contents, as published in http://ws.stfx.eu/ETEC2JH7363M, but if you test that code you will see that the contents showed in the inform message are one keystroke behind of the current playground content, as showed below, which creates usability issues (we need to add empty spaces and new lines to get the proper content of the Playground saved).

There is any way to store/show the actual contents of the playground, instead of one keystroke behind.

Thanks,

Offray

Reply | Threaded
Open this post in threaded view
|

Re: Autoupdate of playground contents up to the last keystroke

Tudor Girba-2
Hi,

You are reading the wrong port.

Try this instead:

playground := GTPlayground new.
playground openOn: GTPlayPage new.
playground
        onChangeOfPort: #text
        act: [ :x | self inform: (x pane port: #text) value ]

Cheers,
Doru



> On Nov 28, 2017, at 12:48 AM, Offray Vladimir Luna Cárdenas <[hidden email]> wrote:
>
> Hi,
>
> Grafoscopio uses Doru's suggestion for auto-updating its contents, as published in http://ws.stfx.eu/ETEC2JH7363M, but if you test that code you will see that the contents showed in the inform message are one keystroke behind of the current playground content, as showed below, which creates usability issues (we need to add empty spaces and new lines to get the proper content of the Playground saved).
>
> <cielpnbindpgogab.png>
>
> There is any way to store/show the actual contents of the playground, instead of one keystroke behind.
>
> Thanks,
>
> Offray

--
www.tudorgirba.com
www.feenk.com

"We are all great at making mistakes."









Reply | Threaded
Open this post in threaded view
|

Re: Autoupdate of playground contents up to the last keystroke

Offray Vladimir Luna Cárdenas-2
Thanks Doru. Works like a charm.

Cheers,

Offray


On 28/11/17 01:37, Tudor Girba wrote:

> Hi,
>
> You are reading the wrong port.
>
> Try this instead:
>
> playground := GTPlayground new.
> playground openOn: GTPlayPage new.
> playground
> onChangeOfPort: #text
> act: [ :x | self inform: (x pane port: #text) value ]
>
> Cheers,
> Doru
>
>
>
>> On Nov 28, 2017, at 12:48 AM, Offray Vladimir Luna Cárdenas <[hidden email]> wrote:
>>
>> Hi,
>>
>> Grafoscopio uses Doru's suggestion for auto-updating its contents, as published in http://ws.stfx.eu/ETEC2JH7363M, but if you test that code you will see that the contents showed in the inform message are one keystroke behind of the current playground content, as showed below, which creates usability issues (we need to add empty spaces and new lines to get the proper content of the Playground saved).
>>
>> <cielpnbindpgogab.png>
>>
>> There is any way to store/show the actual contents of the playground, instead of one keystroke behind.
>>
>> Thanks,
>>
>> Offray
> --
> www.tudorgirba.com
> www.feenk.com
>
> "We are all great at making mistakes."
>
>
>
>
>
>
>
>
>
>