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 "addSeparator", if i use it - i get an error. On Wed, 2 Nov 2016 14:53:56 -0700 (PDT) "jfabry [via Smalltalk]" <ml-node+s1294792n4921213...@n4.nabble.com> wrote: > > > 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 seem too brief? Sorry for that, I don’t mean to be rude! > Please see http://emailcharter.org . > > Johan Fabry - http://pleiad.cl/~jfabry > PLEIAD and RyCh labs - Computer Science Department (DCC) - University of > Chile > > > On 02 Nov 2016, at 18:43, vikenti <vikenti.pota...@gmail.com> wrote: > > > > 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 need your advice. > > > > These ase some of the most important problems: > > 1. I need to rewrite the whole GUI from scratch. What UI framework to > > choose and where to get documentation? Please, don't send me to research > > code examples instead of docs - i do this during whole last week. The > > example should be complete and simple: one task - one example, all examples > > i've seen are either not applicable to real life or too complicated to > > understand. > > - I need simple window with menu (how to attach menu items to menu > > handlers???? - no answer in examples) > > - Toolbar with icons (how????????) > > - components (as i understand - Morphic subclasses, it is the simplest > > part) > > - when window opens i need handler to do some setup actions. Handler should > > fire after UI is built and my app's window is opened (how?????) > > - i need another handler, which fires when you try to close Pharo or > > application's window. Handler must check whether to close window or not and > > do allow or not to close my application. > > - how to programmatically close window?????? > > > > 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 and auto-load _my_ application after startup. > > > > 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. > > > > 4. Application deployment. How to strip the unnecessary code from the image? > > I've heard there is "small image" to add all-i-need-to-run. Where i can > > download it and how to use it???? > > > > > > > > > > > > > > > > > > > > -- > > View this message in context: > > http://forum.world.st/Pharo-desktop-UI-tp4921212.html > > Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com. > > > > > > > > > > > _______________________________________________ > If you reply to this email, your message will be added to the discussion > below: > http://forum.world.st/Pharo-desktop-UI-tp4921212p4921213.html > > To unsubscribe from Pharo desktop UI, visit > http://forum.world.st/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4921212&code=dmlrZW50aS5wb3RhcG92QGdtYWlsLmNvbXw0OTIxMjEyfDIxNDcxNTYzMTI= -- С уважением, Викентий Потапов http://vikenti.ru тел.: +7 (917) 880 25 07 (г. Казань) -- View this message in context: http://forum.world.st/Pharo-desktop-UI-tp4921212p4921229.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.