Status: New
Owner: ---- Labels: Type-Defect Priority-Medium New issue 967 by [hidden email]: Cannot change the selection index dynamically in drop down list presentations http://code.google.com/p/moose-technology/issues/detail?id=967 I am trying to change dynamically selection index of a droplist in Glamour. But changing the selectedIndex upon selection does not change anything in the browser. Here is my code: |browser | browser := GLMTabulator new. browser row: #one size: 30; row: #two. browser transmit to: #one; andShow: [:a | a dropDownList display: [:x | 1 to: 12 ]; selectedIndex: 10 ]. browser transmit from: #one; to: #two; andShow: [:a | a list display: [:x | 1 to: x ]; selectionAct: [:aPres :each | (browser paneNamed: #one) presentations first selectedIndex: 1] entitled: 'select in dropList' ]. browser openOn: 1 Populating the pane port with the selected does change the list items but it does not update the selected value in the dropdown list. selectionAct: [:aPres :each | ((browser paneNamed: #one) port: #selection) value: (1)] entitled: 'select in dropList' ]. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings _______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
Updates:
Labels: Component-Glamour Comment #1 on issue 967 by [hidden email]: Cannot change the selection index dynamically in drop down list presentations http://code.google.com/p/moose-technology/issues/detail?id=967 The simplest solution is to update the selection index when the selection changes. This way, setting the selection would update the selection index and the second example will work. The alternative will be to make selectionIndex a port. Then also the first example from above will work. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings _______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
Comment #2 on issue 967 by [hidden email]: Cannot change the selection index dynamically in drop down list presentations http://code.google.com/p/moose-technology/issues/detail?id=967 Issue 968 has been merged into this issue. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings _______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
Comment #3 on issue 967 by [hidden email]: Cannot change the selection index dynamically in drop down list presentations http://code.google.com/p/moose-technology/issues/detail?id=967 Now whenever the selection of a drop down presentation is changed the selection index is updated, both visibly and in the presentation. The following code should work. Still the selectionIndex is not a port so just setting it and calling update on the presentation will not update the selection port. |browser | browser := GLMTabulator new. browser row: #one size: 30; row: #two. browser transmit to: #one; andShow: [:a | a dropDownList display: [:x | 1 to: 12 ]; selectedIndex: 10 ]. browser transmit from: #one; to: #two; andShow: [:a | a list display: [:x | 1 to: x ]; selectionAct: [:aPres | ((browser paneNamed: #one) port: #selection) value: aPres selection] entitled: 'select in dropList' ]. browser openOn: 1. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings _______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
Updates:
Status: Fixed Labels: Milestone-4.8 Comment #4 on issue 967 by [hidden email]: Cannot change the selection index dynamically in drop down list presentations http://code.google.com/p/moose-technology/issues/detail?id=967 Great, -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings _______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
Free forum by Nabble | Edit this page |