Hi, why you say you cannot doit with Spec? If I understand correctly, what you want to do is to attach the windows you do to the Pharo world. For doing that with Spec you would do something like this: myMorph := mySpecModel buildWithSpec. World addMorph: myMorph fullFrame: LayoutFrame identity. myMorph beSticky. (also you have to change the layout of myMorph, etc.) anyway⦠the other thing you ask is how to attach one list to another? Letâs say you have listA and listB, you want to change selection on listB when listA changes? That you have to doit listening the change event. Using a FTTableMorph (or FTEasyListMorph), which are the ones I recommend you to use, you would do something like this: listB := FTEasyListMorph new elements: myElementsForB; display: [ :each | each asString ]; yourself. listA := FTEasyListMorph new elements: myElementsForA; display: [ :each | each asString ]; onAnnouncement: FTSelectionChanged do: [ :ann | listB selection: newSelectionForB ]; yourself. then you can add your list morph whenever you want. hope this helps :) Esteban
On 28 Apr 2017, at 10:57, bachitoph <cj-bachinger@gmx.de> wrote:
Hello,
porting my digitalk / dolphin application to pharo (www.trimfox.com) I have to port my dialog creation part. Unfortunately I can't use Spec because my dialog creation depends on boundingBox: (Pharo bounds:) by calculation position and extent in pixels. So I have to use Morphic. There is the nice class WidgetExamples which helped me very much. But the Normal List control does not change selection if there is a click on another item. You can see the behavior evaluating the code below, and click maybe on the <Two> item. Same behavior in my Dialog class. Any hint!
WidgetExamples exampleBasicControls
thanks cjb
-- View this message in context: http://forum.world.st/Basic-controls-Normal-List-does-not-change-selection-t... Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.