Re: [Pharo-users] Autoupdate of playground contents up to the last keystroke
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 >>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). >> >> >> >> 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." > > > > > > > > > >
Re: [Pharo-users] Autoupdate of playground contents up to the last keystroke
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 >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). > > > > 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."
[Pharo-users] Autoupdate of playground contents up to the last keystroke
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