Hi!
I am building a wizard and I am stopped on something that looks trivial.
Consider the following script:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
| control firstPane lastPane part1 dropListPart part2 |
control := WizardControl new.
firstPane := WizardFirstPane new.
lastPane := WizardLastPane new.
control addPane: firstPane; addPane: lastPane.
"First pane: picking the configuration we are interested in"
part1 := TextPart new inGroupboxNamed: 'Select the configuration you want to
load versions from'.
firstPane addPart: part1 associatedTo: #selectedConfiguration.
dropListPart := DropListPart new
inGroupboxNamed: 'Configurations';
list: self listOfConfigurations;
useLatePopulateContents: false;
yourself.
firstPane row: dropListPart associatedTo: #selectedConfiguration2.
"Second pane"
part2 := MultiSelectionItemSelectorPart new initialList: ([:input | {input at:
#selectedConfiguration2}]).
lastPane addPart: part2 associatedTo: #selectedVersions.
"Open the controler"
control open.
^ control
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
The problem is that I do not know how to initialize the MultiSelectionItemSelectorPart in
the second pane since I need the result of what I selected in part1. I tried to inspire
myself from the merlin example #itemsSelectorPartUsing: , but without success.
So, how part2 can refer to the result selected in part1 ?
Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel
http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.