Quote:
Originally Posted by DaveW
I still need to get my head round the "why" part -
|
In your code img1obj contains a reference to your Image1 control. img1mve is an event object, owned by img1obj, that calls NewEvent when the mouse moves over the image.
Each event has an eventargs object assoicated with it that contains none, one or more details of the event depending upon the event type. In this case X and Y are properties of the eventargs belonging to the img1mve event. You cannot access these properties through img1obj, you must get them from the eventargs of the img1mve event and for this reason these are exposed to you by the Data property of the img1mve event object.
The Door library is not intended for routine use by "normal" programmers. To use it, other than by example, needs reasonably in-depth knowledge of the underlying .NET Common Language Runtime and its objects, and knowledge of how to access its documentation and understand it once you have found it. The library is provided so that features of objects that are desired to be used when they are not exposed by Basic4ppc or its libraries can be accessed without having to implement them in a library upgrade. The major "users" of this library are probably Erel and myself on behalf of other users.