Re: [Pharo-users] Pharo desktop UI

2016-11-07 Thread vikenti
Ok, i understand. The Spec famework is under development so it changes frequently. Regarding my problem - thanks to Denis Kudriashov - the solution is simple: initializeWidgets ... locationField := LocationFieldMorph new asSpecAdapter. "adding these two lines below force

Re: [Pharo-users] Pharo desktop UI

2016-11-07 Thread Johan Fabry
I understand what you are asking, in previous versions of the documentation we had something like this. However this turned out to be a bad idea since this is too closely linked to the actual implementation. Making internal changes to the Spec interpreter means that this documentation also needs

Re: [Pharo-users] Pharo desktop UI

2016-11-06 Thread vikenti
Maybe you can give some brief explanaition how to create Spec-compatible custom UI control? (Like TextModel or ButtonModel, etc.) How to create model class, corresponding adapter and how to process common and custom UI events (mouse\keyboard\focus ordering\changing). I think such guide should a

Re: [Pharo-users] Pharo desktop UI

2016-11-06 Thread Johan Fabry
Hello Vikenti, I think that you are using the SpecAdapter for morphs in ways it has never been tried or used. So the problems you are having reveal bugs in the SpecAdapter. Please file a bug report, and feel free to contribute a fix as well of course ;-) (more about bugreports here: http://phar

Re: [Pharo-users] Pharo desktop UI

2016-11-05 Thread vikenti
New problem with Spec. Layout consists of menu and custom control (subclass of Morph created by asSpecAdapter): initializeWidgets menu := self instantiate: MenuModel. self setupMenu. menu applyTo: self. locationField := LocationFieldMorph new asSpecAdapter. d

Re: [Pharo-users] Pharo desktop UI

2016-11-05 Thread vikenti
Last time i wrote about problem with catching mouse events in custom morph embedded in Spec layout. The reason was very simple: my custom widget didn't resized automatically so events were handled properly only in the small area - the area of base class morph size. On Thu, 3 Nov 2016 08:46:29

Re: [Pharo-users] Pharo desktop UI

2016-11-04 Thread vikenti
Thanks for advices, i added them to my work notes. Working with Spec i found another problem: I create a window with simple layout: menu + custom morph. I want my morph to do some interactive work for me - it must display data and handle mouse down\move\wheel. The problem is: when i start the

Re: [Pharo-users] Pharo desktop UI

2016-11-03 Thread Ben Coman
On Thu, Nov 3, 2016 at 10:05 PM, Dimitris Chloupis wrote: > " > 3. How to drag-n-drop from the host operation system into pharo application > and vice versa? I need to drag-n-drop a list of files from\to file browser." I don't know the answer to what you ask, but the experiment code I attached to

Re: [Pharo-users] Pharo desktop UI

2016-11-03 Thread Ben Coman
On Thu, Nov 3, 2016 at 5:43 AM, vikenti wrote: > 2. The next task is to do some work on image load (i mean pharo image). I > need some handler which fires immediately after image is loaded. How to > include my handler in this chain My app saves data into the image so i > need to manage this an

Re: [Pharo-users] Pharo desktop UI

2016-11-03 Thread Dimitris Chloupis
Hello mr newbie, welcome to our island :) "1. I need to rewrite the whole GUI from scratch. What UI framework to choose and where to get documentation?" Johan already recommended Spec , I think its the best fit for you. If you want more customisation you can always use Morphic together with Spec

Re: [Pharo-users] Pharo desktop UI

2016-11-03 Thread Pavel Krivanek
For older Pharo versions there exists framework for native UI named Phobos that uses XULRunner to display user interface. Screenshots: http://imgur.com/a/HFzuE -- Pavel 2016-11-02 22:43 GMT+01:00 vikenti : > Hello, i'm newbie in Pharo, converted from Visual Works which is quite > different from

Re: [Pharo-users] Pharo desktop UI

2016-11-03 Thread stepharo
Le 2/11/16 à 22:43, vikenti a écrit : Hello, i'm newbie in Pharo, converted from Visual Works which is quite different from Pharo Smalltalk. I started to port my application (i've been working on for about three years) from VW (because of new personal user licensing limitations of Visual Works)

Re: [Pharo-users] Pharo desktop UI

2016-11-03 Thread stepharo
http://books.pharo.org and you can contribute if when reading you think something is missing. and you can also contribute by improving Spec. Stef Le 2/11/16 à 23:01, Johan Fabry a écrit : Hello Vikenti, for writing UIs in Pharo the UI builder you should use is Spec. We have documentation o

Re: [Pharo-users] Pharo desktop UI

2016-11-02 Thread Johan Fabry
I’m happy that the documentation is of help to you! Sorry but I don’t have an answer to your question at hand right now. Have a look at all the users of MenuModel and friends to see where they are used in the image, you should be able to get the examples you need. HTH, -- Does this mail seem

Re: [Pharo-users] Pharo desktop UI

2016-11-02 Thread vikenti
Thanks! After looking through this manual i successfully created simple window with cascaded menu which. I will deeply research this book. One more question: how to add separator to the menu group? either MenuGroupModel nor MenuItemModel has special selector but autocompletion shows me "addSepa

Re: [Pharo-users] Pharo desktop UI

2016-11-02 Thread Johan Fabry
Hello Vikenti, for writing UIs in Pharo the UI builder you should use is Spec. We have documentation online in the form of a book (which is a work in progress).I think it will answer many of your UI questions, have a look at http://files.pharo.org/books/spec-tutorial/ HTH, -- Does this mail

[Pharo-users] Pharo desktop UI

2016-11-02 Thread vikenti
Hello, i'm newbie in Pharo, converted from Visual Works which is quite different from Pharo Smalltalk. I started to port my application (i've been working on for about three years) from VW (because of new personal user licensing limitations of Visual Works), but i have to solve some problems and ne