On 12-Jul-10, at 12:39 PM, Björn Eiríksson wrote:


On 12.7.2010, at 18:27, Alfred Van Hoek wrote:


On Jul 12, 2010, at 2:03 PM, Björn Eiríksson wrote:

So this whole mess on the MouseDrag change made me think is there any sanctioned way for a plugin to wire up a event on a class that it creates or do I have to go through unsanctioned ways ?

Example case would be if a plugin creates instance of a timer, then it would want to wire up the timer event.


Not sure, but if you would use the MouseMoveHandler, and you have set a flag mouseStillDown using MouseDown/mouseUP then you would have the mousedrag even when the mouse is not moved...

Alfred

Would that not just hang the UI thread ?

i am able to create a timer and have it fire events. (using unsanctioned ways to hookup the event since there are just some things they still have not exposed in the SDK making many things officially impossible for plugins to be officially sanctioned)

Have another issue though, also relating to the same, if i make a Timer in Grid1 then I have no good way of knowing which grid owns that particular timer, in the documentation for timer there seems to be no data on how to hookup extra data to it, so basically the Grid has no idea if instance Grid1, Grid2 or Grid3 owns the damn thing.

A timer subclass seems the right answer to both questions
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to