SelectionChanged and datagrids

2011-02-22 Thread Bob Sneidar
Not complaining just a curiosity. I have a selectionChanged handler in my data 
grid because I want to trap for it and act based one what the user selected. 

I discovered though, that if I have something selected, and then 
programmatically set the dgText of the datagrid, effectively deselecting 
anything, the datagrid does NOT get the selectionChanged message, even though 
the selection DID change. 

I suppose I could go into the behavior and modify it to suit my needs but it's 
no big deal. 

Bob



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: SelectionChanged and datagrids

2011-02-22 Thread Terry Judd
Bob - How about sending selectionChanged to the datagrid immediately after
updating the dgText?

Terry...


On 23/02/11 9:33 AM, Bob Sneidar b...@twft.com wrote:

 Not complaining just a curiosity. I have a selectionChanged handler in my data
 grid because I want to trap for it and act based one what the user selected.
 
 I discovered though, that if I have something selected, and then
 programmatically set the dgText of the datagrid, effectively deselecting
 anything, the datagrid does NOT get the selectionChanged message, even though
 the selection DID change.
 
 I suppose I could go into the behavior and modify it to suit my needs but it's
 no big deal. 
 
 Bob
 
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode

--
Dr Terry Judd | Senior Lecturer in Medical Education
Medical Education Unit
Melbourne Medical School
The University of Melbourne



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: SelectionChanged and datagrids

2011-02-22 Thread Peter Haworth
Yes, that's what you need to do.  I set the dghilitedline of datagrids by 
script frequently and that doesn't trigger a selectionChanged event so I have 
to send one in the script.

Pete Haworth

On Feb 22, 2011, at 2:51 PM, Terry Judd wrote:

 Bob - How about sending selectionChanged to the datagrid immediately after
 updating the dgText?
 
 Terry...
 
 
 On 23/02/11 9:33 AM, Bob Sneidar b...@twft.com wrote:
 
 Not complaining just a curiosity. I have a selectionChanged handler in my 
 data
 grid because I want to trap for it and act based one what the user selected.
 
 I discovered though, that if I have something selected, and then
 programmatically set the dgText of the datagrid, effectively deselecting
 anything, the datagrid does NOT get the selectionChanged message, even though
 the selection DID change.
 
 I suppose I could go into the behavior and modify it to suit my needs but 
 it's
 no big deal. 
 
 Bob
 
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 --
 Dr Terry Judd | Senior Lecturer in Medical Education
 Medical Education Unit
 Melbourne Medical School
 The University of Melbourne
 
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: SelectionChanged and datagrids

2011-02-22 Thread J. Landman Gay

On 2/22/11 4:33 PM, Bob Sneidar wrote:


I discovered though, that if I have something selected, and then
programmatically set the dgText of the datagrid, effectively
deselecting anything, the datagrid does NOT get the selectionChanged
message, even though the selection DID change.


It isn't just datagrids. The engine doesn't send that message if a 
selection is changed by script.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: SelectionChanged and datagrids

2011-02-22 Thread Bob Sneidar
Ya I can easily do that, but I was commenting on the way it worked. I set the 
dgText of a datagrid a lot, so I would have to remember to do so each time. I 
was thinking it ought to be automatic. 

Bob


On Feb 22, 2011, at 2:51 PM, Terry Judd wrote:

 Bob - How about sending selectionChanged to the datagrid immediately after
 updating the dgText?
 
 Terry...
 
 
 On 23/02/11 9:33 AM, Bob Sneidar b...@twft.com wrote:
 
 Not complaining just a curiosity. I have a selectionChanged handler in my 
 data
 grid because I want to trap for it and act based one what the user selected.
 
 I discovered though, that if I have something selected, and then
 programmatically set the dgText of the datagrid, effectively deselecting
 anything, the datagrid does NOT get the selectionChanged message, even though
 the selection DID change.
 
 I suppose I could go into the behavior and modify it to suit my needs but 
 it's
 no big deal. 
 
 Bob
 
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 --
 Dr Terry Judd | Senior Lecturer in Medical Education
 Medical Education Unit
 Melbourne Medical School
 The University of Melbourne
 
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: SelectionChanged and datagrids

2011-02-22 Thread Bob Sneidar
Ahah! Good to know!

Bob


On Feb 22, 2011, at 4:37 PM, J. Landman Gay wrote:

 On 2/22/11 4:33 PM, Bob Sneidar wrote:
 
 I discovered though, that if I have something selected, and then
 programmatically set the dgText of the datagrid, effectively
 deselecting anything, the datagrid does NOT get the selectionChanged
 message, even though the selection DID change.
 
 It isn't just datagrids. The engine doesn't send that message if a selection 
 is changed by script.
 
 -- 
 Jacqueline Landman Gay | jac...@hyperactivesw.com
 HyperActive Software   | http://www.hyperactivesw.com
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode