Hello,
From the settings browser, I want a drop list populated with morph of my choice; for example coloured rectangle morphs: I want the user to select a colour from such a predefined set and not from a text list.
I did not find it is possible. Did I miss something ? (aBuilder pickOne: #pointColor) label: 'Colour' translated; description: 'The default point colour.'; default: #red; domainValues: {#red->Color red asMorph . #black-> Color black asMorph}]. Thanks -- Dr. Geo - http://drgeo.eu iStoa - http://istoa.drgeo.eu
Hi, take a look at WidgetExamples class>>exampleBasicControls one of the inputs is a morph drop list. Peter On Tue, Mar 24, 2015 at 6:02 PM, Hilaire <hilaire@drgeo.eu> wrote:
Hello,
From the settings browser, I want a drop list populated with morph of my choice; for example coloured rectangle morphs: I want the user to select a colour from such a predefined set and not from a text list.
I did not find it is possible. Did I miss something ?
(aBuilder pickOne: #pointColor) label: 'Colour' translated; description: 'The default point colour.'; default: #red; domainValues: {#red->Color red asMorph . #black-> Color black asMorph}].
Thanks
-- Dr. Geo - http://drgeo.eu iStoa - http://istoa.drgeo.eu
Le 24/03/2015 18:30, Peter Uhnák a écrit :
take a look at WidgetExamples class>>exampleBasicControls one of the inputs is a morph drop list.
Hi Peter, I know but my question is about using such morph drop list from the Settings browser. Hilaire -- Dr. Geo - http://drgeo.eu iStoa - http://istoa.drgeo.eu
Hello Hilaire, you do it but not with a pickOne list. Yes I know it would be very cool to be able to do with a pickOne. Have a look at the setting chapter (The Setting Framework) https://ci.inria.fr/pharo-contribution/view/Books/job/DeepIntoPharo/ At the end of the chapter I explained how to extend the setting browser. You will see how to implement this preference setting: Cheers Alain
Le 24 mars 2015 à 20:39, Hilaire <hilaire@drgeo.eu> a écrit :
Le 24/03/2015 18:30, Peter Uhnák a écrit :
take a look at WidgetExamples class>>exampleBasicControls one of the inputs is a morph drop list.
Hi Peter, I know but my question is about using such morph drop list from the Settings browser.
Hilaire
-- Dr. Geo - http://drgeo.eu iStoa - http://istoa.drgeo.eu
participants (3)
-
Alain Plantec -
Hilaire -
Peter Uhnák