Hi all,
I tried to build my first user interface with Pharo. I ran into some
problems, I have a bunch of questions. These are certainly quite simple
to answer for any veteran... If any of you could so kind as to not only
answer them but also to tell me where I sould have looked for the
answer, this would be awesome.
I used Pharo By Example as well as the pharocasts and the occasional
google search to find info.
My code can be found at : http://ss3.gemstone.com/ss/MakeMeASandwich.html
- I build the UI by hand, this is tiresome. Is there a GUI UI builder ?
I found Morphic designer
(https://www.hpi.uni-potsdam.de/hirschfeld/trac/SqueakCommunityProjects/wiki/designer)
and UIBuilder
(http://forum.world.st/CLFramework-UIBuilder-td1302485.html) but it is
unclear if any or both are the Right Way (tm) of doing things with Pharo.
- As you can see if you do RecipeEditor new open, there is a lot of
wasted space. Lists do not expand to take all the vertical space they
could. What is the workaround for that ?
- I have a list created by :
nodeList := ListModel new list: SortedCollection new.
put on screen by :
builder newListFor: self list: #nodeList selected: #selectedNodeIndex
changeSelected: #selectNodeAtIndex: help: 'Liste des étapes'.
and I use :
nodeList list at: (nodeList selectionIndex)
on the press of a button to get the selected element of a list. I
would like this list to allow for multiple selection, and I would like
to get the list of selected elements. I tried to fool around with some
methods having "multiple" in their name, but to no avail.
- The text fields require the user to accept (command-S) the
modification before I can get the content with getText. Is there a good
way to get the non accepted text ?
I tried to to an UI with tk before, and compared to that it has been a
breeze with Smalltalk, the way one can write the highest level call and
then use the debugger to create methods and variables on the fly is very
enjoyable.
Thank you in advance,
Cheers,
Edouard.