[vwnc] Problem using arrow keys on a dataset

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[vwnc] Problem using arrow keys on a dataset

Nel, Dirk
Problem using arrow keys on a dataset

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
Dirk Nel

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
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Problem using arrow keys on a dataset

James Robertson-7
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:

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
Dirk Nel

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


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Problem using arrow keys on a dataset

Nel, Dirk
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
-----Original Message-----
From: [hidden email] [mailto:[hidden email]]On Behalf Of James Robertson
Sent: 25 March 2008 12:46 PM
To: [hidden email]
Subject: Re: [vwnc] Problem using arrow keys on a dataset

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:

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
Dirk Nel

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


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

[vwnc] SelectionView instVar called 'sequence'

Anderson, Kimberly
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