Roberto Lopez wrote:
Spinners has its own 'OnChange' events that programmatically changes the selection of the grid again to its current values already changed interactively by the users...
The result is that Grid 'OnChange' event is fired
multiple times and the sample is not working as expected.
Sorry, I couldn't understand this theory
Let look at this verbose animation :
User : You GRID, set your value to { x, y }
GRID : Ok, setted; you SPNR, my value changed to { x, y }
SPNR : Ok, me too setted; you GRID, my value changed to { x, y }
GRID : Ok, me too setted; you SPNR, my value changed to { x, y }
...
If events goes this way this is clearly an endless loop !
Whereas we haven't any signal about such loop; cursor in its own place, don't disappear; prg accept and responds subsequent user inputs.
IMHO events goes that way :
User : You GRID, set your value to { x, y }
GRID : Ok, setted; you SPNR, my value changed to { x, y }
SPNR : Ok, me too setted; you GRID, my value changed to { x, y }
GRID : Opps, my value is already that; no CHANGE made, so no signal required to SPNR !!!
or
GRID : Ok, me too setted; Does my value changed ?; No. So no signal required to SPNR !!!
I'm not an expert of Win32. Sorry, If I'm wrong.
Regards
--
Esgici