VA Smalltalk is a "100% VisualAge compatible" IDE that includes the original VisualAge technology and the popular VA Assist and WidgetKit add-ons.
Moderators: Eric Clayberg, wembley, tc, Diane Engles, solveig
by jackiezachman » Thu Jul 02, 2009 1:11 pm
I'm looking for a subclass of EwEditPolicy that I can use for selecting multiple items, preferably with a CwObjectList widget. Does anyone have anything they are willing to share? Or other suggestions on how to accomplish multiple selections in an Edit Policy?
-
jackiezachman
-
- Posts: 11
- Joined: Tue Nov 06, 2007 6:53 am
by tc » Sat Jul 04, 2009 8:45 am
Hello,
- Code: Select all
| shellWindow mainWindow list width height |
width := 100.
height := 100.
shellWindow := CwTopLevelShell
createApplicationShell: 'shell'
argBlock: [:w | w title: 'Shell Example 1' ].
mainWindow := shellWindow
createMainWindow: 'main'
argBlock: [ :w |
w
width: width;
height: height ].
mainWindow manageChild.
shellWindow realizeWidget.
list := (CwObjectList
createScrolledManagedWidget: 'obj_list'
parent: mainWindow
argBlock: [:w | w selectionPolicy: XmEXTENDEDSELECT ]) manageChild.
list items: #('one' 'two' 'three' 'four')
--tc
-
tc
- Moderator
-
- Posts: 304
- Joined: Tue Oct 17, 2006 7:40 am
- Location: Raleigh, NC
by jackiezachman » Mon Jul 06, 2009 12:49 pm
Yes, I know how to use a CwObjectList. I'm actually looking for an Edit Policy that can be used when you click on an editable cell in an EwTableList. The Edit Policy classes included in the EwLists application only allow a single selection. I need one that allows the user to select multiple items.
-
jackiezachman
-
- Posts: 11
- Joined: Tue Nov 06, 2007 6:53 am
by tc » Mon Jul 06, 2009 10:42 pm
Hello,
Open the application manager, select 'available applications', and load EwExamples.
One of the classes in that app is EwxTableListExample. Hit the 'test' button and some of the columns have drop downs, plus other widgets.
--tc
-
tc
- Moderator
-
- Posts: 304
- Joined: Tue Oct 17, 2006 7:40 am
- Location: Raleigh, NC
by jackiezachman » Wed Jul 08, 2009 8:10 am
I have decided not to try to create an Edit Policy for this. Thanks for the other ideas.
-
jackiezachman
-
- Posts: 11
- Joined: Tue Nov 06, 2007 6:53 am
Return to VA Smalltalk 7.0, 7.5 & 8.0
Who is online
Users browsing this forum: Yahoo [Bot] and 1 guest