Re: [Pharo-users] How to make an input field with some formating abilities

2015-11-11 Thread Tudor Girba
Hi, The only similarity is the need to have a more scriptable API for widgets. Other than that, the two engines have different goals and structure: Glamour is for browsers, Spec is for declarative user interfaces. Cheers, Doru > On Nov 11, 2015, at 11:58 AM, Dimitris Chloupis wrote: > > how

Re: [Pharo-users] How to make an input field with some formating abilities

2015-11-11 Thread Dimitris Chloupis
how come Spec does not unite with Glamour and vice versa if the goals are similar ? On Wed, Nov 11, 2015 at 12:22 PM Tudor Girba wrote: > The same type of fluid interface is available in Glamour. > > That is why this quick prototyping has to make it in the base layer, not > just in the libraries

Re: [Pharo-users] How to make an input field with some formating abilities

2015-11-11 Thread Tudor Girba
The same type of fluid interface is available in Glamour. That is why this quick prototyping has to make it in the base layer, not just in the libraries that are built on top (like Glamour or Spec). Doru > On Nov 10, 2015, at 10:16 PM, Dimitris Chloupis wrote: > > yes the dynamic building of

Re: [Pharo-users] How to make an input field with some formating abilities

2015-11-11 Thread Stephan Eggermont
On 10-11-15 21:18, Dimitris Chloupis wrote: Delphi continued with the new company but since the new company has nowhere near the resources of Borland the decided to embrace .NET while keeping VCL around purely for compatibility reasons. Now Delphi works on .NET which follow a very similar design

Re: [Pharo-users] How to make an input field with some formating abilities

2015-11-10 Thread Dimitris Chloupis
yes the dynamic building of spec guis is definetly better than morphic On Tue, Nov 10, 2015 at 11:11 PM Johan Fabry wrote: > > No worries, no offense taken (at least on my part). I could just not > resist posting a 3-liner that showed you that some things do work nicely in > Spec :-) > > On Nov

Re: [Pharo-users] How to make an input field with some formating abilities

2015-11-10 Thread Johan Fabry
No worries, no offense taken (at least on my part). I could just not resist posting a 3-liner that showed you that some things do work nicely in Spec :-) > On Nov 10, 2015, at 17:50, Dimitris Chloupis wrote: > > Just for the record when I say I dont like something is a mere stating of an > op

Re: [Pharo-users] How to make an input field with some formating abilities

2015-11-10 Thread Dimitris Chloupis
Just for the record when I say I dont like something is a mere stating of an opinion and in no way a chance to offend or downgrade the hard work that went to those libraries. Afterall most of the time I dont even like my own code. There is no right or wrong here, just personal taste. And I have re

Re: [Pharo-users] How to make an input field with some formating abilities

2015-11-10 Thread Dimitris Chloupis
My problem is not whether Morphic can do this , it can and its not even any more complex than your Spec code, all I have to do is override the keyStroke: message, my question was on the formating of the input data, I assumed since I see several diffirent inputs fiels in pharo that do some kind of f

Re: [Pharo-users] How to make an input field with some formating abilities

2015-11-10 Thread Stephan Eggermont
On 10-11-15 20:03, Dimitris Chloupis wrote: Well my experience with other language has taught me GUI APIs are generally a nightmare to work with, the only exception to this rule was DELPHI, those guys were just awesome at GUI design. VCL was simple yet incredible flexible, I would even dare say t

Re: [Pharo-users] How to make an input field with some formating abilities

2015-11-10 Thread Johan Fabry
Hi, sins you dislike Spec I cannot resist to taunt you with these 3 lines of Spec code that do what you want :-P field := TextInputFieldModel new autoAccept:true; acceptBlock: [:text | field text: text asUppercase]. field openWithSpec Note that the transform here is a simple asUppercase

Re: [Pharo-users] How to make an input field with some formating abilities

2015-11-10 Thread Dimitris Chloupis
I have taken a look at rubric elemenst, they look even more messier than morphic. I can do something similar with textMorph without messing with announcers. It looks to me a bit too much to send an announcement on a key event. Anyway I will give a try at textMorph and will go from there, probably

Re: [Pharo-users] How to make an input field with some formating abilities

2015-11-10 Thread Stephan Eggermont
On 10-11-15 18:16, Dimitris Chloupis wrote: What I want is to create a morph that has the ability to input text from the user that formats it automatically and allows for a limited amount of characters. You might want to take a look at RubFloatingEditorBuilder. In #buildEditor you see how to re

Re: [Pharo-users] How to make an input field with some formating abilities

2015-11-10 Thread stepharo
Le 10/11/15 18:16, Dimitris Chloupis a écrit : What I want is to create a morph that has the ability to input text from the user that formats it automatically and allows for a limited amount of characters. This input field will be in the format of HH:MM:SS , (H)our (M)inute (S)econd. The : se

[Pharo-users] How to make an input field with some formating abilities

2015-11-10 Thread Dimitris Chloupis
What I want is to create a morph that has the ability to input text from the user that formats it automatically and allows for a limited amount of characters. This input field will be in the format of HH:MM:SS , (H)our (M)inute (S)econd. The : seperators will be entered automagically by the input f