First, THANKS FOR BREATHING NEW LIFE INTO SMALLTALK!!!!!
We've adopted Pharo/Moose/et.al. for a major project in IBM Research, and as a 29-year Smalltalk veteran, I am simply blown away by all the extreme functionality the community has developed.
In getting used to Glamour, I found a need for a doubleClick action, but the only examples and APIs I could locate used the transmission to update another pane. I worked out how to do what I need using a "hidden pane", but its an awkward hack. What I would really like is a strongSelectionAct: but I haven't learned enough of the infrastructure to add it myself.
I also found that once you doubleClick an unselected list item, it launches the action, selects the list item, but then you can't doubleClick it again for another action. I found a solution by resetting the port value.
Here's the code that works.
browser := GLMTabulator new.
browser row:#numbers; row:#numbersDoubleClick size:0.1.
browser transmit to: #numbers; andShow:[:a| a list display:[:n| 1to: n]].
browser transmit to: #numbersDoubleClick; from: #numbers port:#strongSelection;
andShow:[:x| (browser portValueAt: (#numbers->#strongSelection)) explore.
browser portValueAt: (#numbers->#strongSelection) put: nil].
browser openOn: 10.
Is there a better way?
Regards,
Sam
Sam S. Adams, CTO - Contextual Computing
IBM Distinguished Engineer, IBM Research
Mobile: 919-696-6064, email: ssadams@us.ibm.com
Assistant: Linda R. Morrison. (720) 395-0460 Fax: (845) 491-4318, Tie: 676-0460, linda.r.morrison@us.ibm.com
<<Hebrews 11:6, Proverbs 3:5-6, Romans 1:16-17, 1 Corinthians 1:10>>
_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev