Hi all Hope someone can help. My onChange event on my dataset is working perfectly when I'm using the mouse click, but when using my arrows keys the selection index does not update. Any suggestions? Thanks
This email and all content are subject to the following disclaimer:
http://content.momentum.co.za/content/legal/disclaimer_email.htm
_______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
I had this exact problem in BottomFeeder. See DataSetView>>moveEditVerticallyBy:
The #valueChange is sent too soon - you get the last position rather than the current James Robertson Talk Small and Carry a Big Class Library On Mar 25, 2008, at 4:53 AM, Dirk Nel wrote:
_______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
In reply to this post by Nel, Dirk
Thanks for the help.
I
fixed moveEditVerticallyBy: by moving #valueChange down to after the
selectionIndex is set.
Then
I ran into another problem. The SelectionInList's selectionIndexHolder
wasn't updating to the new value when using the arrow keys. It was out of
sync with the DataSetView's selectionIndex. I fixed this by adding a new
method, notifyDependents, that notifies the DataSetViews dependents (of which
the SelectionInList is one) whenever the selectionIndex is changed. In
notifyDependents I send the new selectionIndex to the SelectionInList and it
then updates its selectionIndexHolder with that value.
If
anyone is interested I can mail you the code.
Thanks to Kimberly Anderson for her
help.
Kind
regards,
Dirk
Nel
_______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
In reply to this post by Nel, Dirk
Hi
everyone,
Does
anyone know why SelectionView needs the instVar 'sequence' that seems to hold a
copy of the model value?
They
seem to get out of sync and I am getting index out of range
errors.
thanks
for any help.
ciao,
Kimberly
This email and all content are subject to the following disclaimer:
http://content.momentum.co.za/content/legal/disclaimer_email.htm
_______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
Free forum by Nabble | Edit this page |