Hi,
This is ideal for some applications, you can even build drag/drop functions
into a picture control using this. But there are some backdraws (or one very
big one);
The picture control needs to be the control on front.
The picture control needs to cover the entire area you need information on.
This implies that normal functions of controls and indicators cannot be
used, not even simply clicking on a button...
It also makes the screen updates take a lot more proccessor time, because
controls/indicators are overlapping. In the example for instance, the charts
are not clear to read, because they're flickering.
Regards,
Wiebe.
"Labviewguru" wrote in message
news:506500000008000000CD390000-1011517314000@exchange.ni.com...
> Even a guru learns new things..
.
>
> I just discovered the use of a picture control/indicator to detect
> mouse positions and clicks! What a wonderful thing. I have LabVIEW
> 6.0.2, and have, up to now, not known about this. To all those out
> there who I recommended to use the mouse click API for Windows, I
> apologize. This is such a marvelous way to get Mouse information.
> It's easy, efficient, and completely held within LabVIEW.
>
> If anyone is wondering what I am talking about, go to Help>Examples in
> LabVIEW and go to the Examples>Advanced Examples>Picture Control
> Examples>Mouse Control.vi to see what I mean. I didn't realize that
> if you dropped a picture control (even as an invisible object!) on the
> front panel that you could use property nodes to get x and y
> positions, and also the left, right, shift left or right, and third
> mouse button click information.
>
> Of course, I hear that this may all be somewhat obsolete in LabVIEW
> 6.1, but for those still using 6.01 or earlier, it's a great t
ool that
> means you don't have to mess with API, MFC or dlls.
>
> Any comments or questions?