Johan wrote:
>I recommend you to go with Spec. It is the newest and designed to be the most capable. It is also the way forward, it will be the 'standard' GUI builders >in the future. We know that the documentation right now is far from optimal. Ben and I will work on that in January. I’d recommend to try to build your application with Glamour first. Only if that doesn’t provide a good fit, take a look at spec. Spec is much more powerful, but too low level for most applications. Stephan |
About Glamour, isn'it used to create Browser? How can i create a typical window?
> From: [hidden email] > Date: Fri, 22 Nov 2013 12:39:06 +0100 > To: [hidden email] > Subject: Re: [Pharo-users] Writing a GUI - Where to start? > > Johan wrote: > >I recommend you to go with Spec. It is the newest and designed to be the most capable. It is also the way forward, it will be the 'standard' GUI builders >in the future. We know that the documentation right now is far from optimal. Ben and I will work on that in January. > > I’d recommend to try to build your application with Glamour first. Only if that doesn’t provide a good fit, > take a look at spec. Spec is much more powerful, but too low level for most applications. > > Stephan > > > > > |
In reply to this post by bahman
>About Glamour, isn'it used to create Browser? How can i create a typical window?
What is a typical window? Spec gives too much freedom and not enough structure for 'typical’ applications. Almost every window in your smalltalk system is a browser. Nearly all would be significantly less code when build with Glamour. Stephan |
On Nov 22, 2013, at 12:35 PM, Stephan Eggermont <[hidden email]> wrote: >> About Glamour, isn'it used to create Browser? How can i create a typical window? > > What is a typical window? Spec gives too much freedom and not enough > structure for 'typical’ applications. > > Almost every window in your smalltalk system is a browser. > Nearly all would be significantly less code when build with Glamour. I agree with Stephan that it is less code to write a browser-like user interface with Glamour. That is the advantage of using a domain-specific solution, like Glamour. However if you are writing something that falls outside of the domain, i.e. a user interface that is not a browser, it will become difficult with Glamour. So I also agree that the question is: what do you mean with 'a typical window'? What is it that your UI should do ? ---> Save our in-boxes! http://emailcharter.org <--- Johan Fabry - http://pleiad.cl/~jfabry PLEIAD lab - Computer Science Department (DCC) - University of Chile |
In reply to this post by Stephan Eggermont-3
Typical Window := Window with buttons and textInput....
> From: [hidden email] > Date: Fri, 22 Nov 2013 16:35:09 +0100 > To: [hidden email] > Subject: Re: [Pharo-users] Writing a GUI - Where to start? > > >About Glamour, isn'it used to create Browser? How can i create a typical window? > > What is a typical window? Spec gives too much freedom and not enough > structure for 'typical’ applications. > > Almost every window in your smalltalk system is a browser. > Nearly all would be significantly less code when build with Glamour. > > Stephan |
In reply to this post by Picci Pharo
The problem is here
rowPlayer
add: (textPlayer at:i) ; add:#captainButton; add: (buttonStartingEleven at:i). ]. As you see, the argument of add: is a symbol, but in the first and third add, you add directly a TextInputFieldModel In addition your usage of class inst var is a bit disturbing :) Ben On 22 Nov 2013, at 11:08, prova email <[hidden email]> wrote:
|
In reply to this post by Picci Pharo
Here is a working version based on DynamicComposableModel (a subclass dedicated to the cases
where you have a lot, or an undefined number of sub widgets) Ben On 22 Nov 2013, at 11:08, prova email <[hidden email]> wrote:
ProvaSquadra.st (9K) Download Attachment |
In reply to this post by Benjamin Van Ryseghem (Pharo)
I knew that the problem was here Ben, but i didn't know how to give to the row a symbol. The only way to make it works was to define the widgets into the instantiateModels (that's why #captainButton doesn't give to me any problem). However thanks for your help!
From: [hidden email] Date: Sun, 24 Nov 2013 12:21:22 +0100 To: [hidden email] Subject: Re: [Pharo-users] Writing a GUI - Where to start? The problem is here rowPlayer add: (textPlayer at:i) ; add:#captainButton; add: (buttonStartingEleven at:i). ]. As you see, the argument of add: is a symbol, but in the first and third add, you add directly a TextInputFieldModel In addition your usage of class inst var is a bit disturbing :) Ben On 22 Nov 2013, at 11:08, prova email <[hidden email]> wrote:
|
Free forum by Nabble | Edit this page |