Hi VA Smalltalk Developers, I'm using a WkTableWidgetView with columns of WkColumnView. I would like to know when the used clicks the heading of a column to sort the items by the values in that column. I think this can be done by adding an event to WkTableWidgetView. The event could be #sorted with a parameter of the column in question. I think the signaling can be added to #WkTableColumnMapper>processButton1Release: near the end between: self widget sortOn: column ascending: column ascending. and: column toggleSortDirection]. something like so: self widget sortOn: column ascending: column ascending. (self widget userData at: #XmUserData) signalEvent: #sorted with: column. column toggleSortDirection]. I haven't tested the above code but I think it should be close. I like the use of sorting the container by clicking on column headings but I often need more like combination (of columns) sorts and need to know when and how things are sorted so I can indicate this to the user. I have a hack (no change to VA Smalltalk code) that get me where I wan to be but it is an ugly hack. Catching this event would be much nicer. Lou You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at http://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/groups/opt_out. |
Hi Lou,
-- I've added a case 53355 to look into this. Solveig On Wednesday, December 18, 2013 5:58:39 PM UTC-5, Louis LaBrunda wrote:
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at http://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/groups/opt_out. |
Free forum by Nabble | Edit this page |