Re: [Pharo-users] GLMFormatedPresentation>>format bug?

2016-05-18 Thread Alistair Grant
Hi Tudor, On Wed, May 18, 2016 at 09:26:51AM +0200, Tudor Girba wrote: > Hi, > > > On May 16, 2016, at 7:59 AM, Alistair Grant wrote: > > > > On Mon, May 16, 2016 at 05:42:54AM +0200, Tudor Girba wrote: > > > > ... > >> It works because the format block takes an

Re: [Pharo-users] Downloading large files with a progress bar

2016-05-18 Thread Offray Vladimir Luna Cárdenas
Hi, This is the code that finally did it: http://ws.stfx.eu/458U3WRKXAW1. I was really puzzled by the progress bar not being updated despite of the download being made (it took me several days to find what happen!). The thing is that the total size of the file was not being delivered by the

[Pharo-users] Scrollable Spec Model

2016-05-18 Thread Peter Uhnák
Hi, anyone has any experience with scrollable (arbitrary) Spec Model? e.g. I have a long list of buttons and fixed outer container window… ​ As far as I can see scrolling is only available on morphic side, so I am not sure how to augment it… (Although we should probably allow scrolling on Spec

[Pharo-users] StampClient produce only and dealing with heartbeat

2016-05-18 Thread Holger Freyther
Dear Sven, I started to use the StampClient and intend to use it to produce data but for heartbeat and other parts I need to read from the socket as well. I wonder about the best strategy to deal with it. The naive approach. [ | event sendFrame | event := sharedQueue next. sendFrame

Re: [Pharo-users] Get a String during the execution

2016-05-18 Thread Julien Delplanque
No problem. :-) ++ Julien On 18/05/16 15:12, Valentin Ryckewaert wrote: Hello julien, cyril helped me i'm using UIManager default textEntry: 'Type something'. and it's exactly what I was looking for ! Thanks you for your answer, i'll check openModal anyway ! :) Valentin 2016-05-18 15:05

Re: [Pharo-users] Retina support in Pharo

2016-05-18 Thread J.F. Rick
My guess is that retina support through Athens rendering and 64-bit are critical to greater adoption of Pharo for several reasons: (1) First impressions matter greatly. If I try to get someone into Pharo and the first thing they see is a pixelated screen, they will have an immediate bad reaction.

Re: [Pharo-users] Get a String during the execution

2016-05-18 Thread Valentin Ryckewaert
Hello julien, cyril helped me i'm using UIManager default textEntry: 'Type something'. and it's exactly what I was looking for ! Thanks you for your answer, i'll check openModal anyway ! :) Valentin 2016-05-18 15:05 GMT+02:00 Julien Delplanque : > Hello Valentin, > > You

Re: [Pharo-users] Get a String during the execution

2016-05-18 Thread Julien Delplanque
Hello Valentin, You should check the World>>#openModal: message. I think this is what you are looking for. :-) Regards, Julien On 18/05/16 14:08, Valentin Ryckewaert wrote: Hi ! I'm trying to make a method able to ask the user to write something which will be used in the method. During my

[Pharo-users] Get a String during the execution

2016-05-18 Thread Valentin Ryckewaert
Hi ! I'm trying to make a method able to ask the user to write something which will be used in the method. During my method execution, a pop up appear on the screen, the user write anything 'test' for exemple, and then the method continue using this string. The code looks like this:

Re: [Pharo-users] Spec layout

2016-05-18 Thread Marion Noirbent
Ok, I wait your answer. Thanks for your help. Marion, Le 18/05/2016 12:04, Peter Uhnák a écrit : Yes but someone must call rebuildWidget… I will try to take a look at this today and give a better/more comprehensive example. Peter On Wed, May 18, 2016 at 1:01 PM, stepharo

Re: [Pharo-users] Spec layout

2016-05-18 Thread Peter Uhnák
Yes but someone must call rebuildWidget… I will try to take a look at this today and give a better/more comprehensive example. Peter On Wed, May 18, 2016 at 1:01 PM, stepharo wrote: > I do not get it. > > I still think that the solution of peter is the one to implement > >

Re: [Pharo-users] Spec layout

2016-05-18 Thread stepharo
I do not get it. I still think that the solution of peter is the one to implement rebuildWidget self widgets removeAll. self createWidgets. self needFullRebuild: false. self buildWithSpecLayout: self dynamicLayout. self alignButtons dynamicLayout | keys | keys :=

Re: [Pharo-users] Spec layout

2016-05-18 Thread Marion Noirbent
Because I would use "openWithSpec" to build only when the widget is ready, but it call a method (with the good pragma) on the class side. In the example i use i have add RadioButtonModel with addRadioButton: in the collection buttons, it's not empty but RadioButtonModel is a ComposableModel

Re: [Pharo-users] Spec layout

2016-05-18 Thread stepharo
But why from the class side. buttons ^ buttons returns an empty collection and rebuildWidget self widgets removeAll. self createWidgets. self needFullRebuild: false. self buildWithSpecLayout: self dynamicLayout. self alignButtons Le 18/5/16 à 11:31, Marion Noirbent

Re: [Pharo-users] Spec layout

2016-05-18 Thread Marion Noirbent
I was trying to use it but i have still the problem to call the instance method from the class side, so i call the buildWithSpecLayout: in the method to add buttons in the collection, it seems work but i have an "MessageNotUnderstood" RadioButton>>layout: Le 18/05/2016 09:20, stepharo a écrit

Re: [Pharo-users] Spec layout

2016-05-18 Thread stepharo
marion the solution is what peter proposes. Stef Le 18/5/16 à 11:14, Marion Noirbent a écrit : In fact i was trying to modify RadioButtonGroup to turn it into a widget, #buttons is not a widget but its collection of widget. May you have confused RadioButtonGroup with the MenuModel /

Re: [Pharo-users] Spec layout

2016-05-18 Thread Marion Noirbent
In fact i was trying to modify RadioButtonGroup to turn it into a widget, #buttons is not a widget but its collection of widget. May you have confused RadioButtonGroup with the MenuModel / MenuGroupModel / MenuItemModel which are widgets. I take inspiration from them and I would got the same

Re: [Pharo-users] Retina support in Pharo

2016-05-18 Thread Thibault Raffaillac
> > What happens if Pharo is launched on a retina computer? > You get the same thing as on a non-retina display, except instead of each > fuzzy pixel you get a visibly sharper square made of 2*2 retina pixels. > From sufficiently far away there's no difference, but when you're right in > front of