05-02-2006 11:05 AM
![]() |
paint renf.zip (837 kb) |
05-03-2006 07:09 AM
05-03-2006 10:51 AM
05-03-2006 01:33 PM
05-03-2006 03:00 PM
05-03-2006 03:29 PM
nousome,
From the sounds of it, a possible solution for your application would be to use the Position property node for the two pictures that you are looking for mouse clicks on. You would then only need one event structure. Then using either Mouse Up or Mouse Down events, get the coordinates of where on the front panel the mouse was clicked and compare them to where your picture positions are (you will have to get the size of your pictures as well). If they are in the range of picture 1, do action 1, if the coordinates are in the range of picture 2, do action 2. If the user didnt click on either of them no actions are taken.
Hope this helps,
Quintin
05-03-2006 03:58 PM
05-03-2006 04:02 PM
Yes, I have read this topic. Certainly it is the reason, but I don't know how to avoid event structure in this case.
In fact, with the two pictures you see in bottom, one is good (S+ and is followed by paint application) and the other is wrong (S- followed by dark screen). The position of the good shape and bad shape is once at left, once at right.
05-03-2006 04:11 PM
05-03-2006 04:12 PM
Sorry I have responded too quicly, and I am wrong. It is good idea. I had also the idea of alternating position of picture control (not visible here because the code is not complete) to accomodate with one picture: contains always the good picture and the other always the bad.
But I have not thought that I don't have to write several times the event structure.