From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
06-02-2007 11:16 AM
06-02-2007 11:50 AM
06-02-2007 12:06 PM
Matt, thank you for you reply. It works very well and I'll use it this way. I'm happy I posted this question, because I have been thinking about whether we can have a transparent control but I searched the properties and couldn't find anything. So I have always though we can not do it. Can you let me know how we can set a control transparent?
Best regards
Guangde
06-02-2007 01:11 PM
06-02-2007 01:32 PM
Mike, thank you for your help. I can not try it at home because I have LabView 7.1 installed in my home computer, it doesn't have the classic controls. Maybe I couldn't find it, let me know if I have it, otherwise I will have to wait until Monday to try it at work. I don't know whether we can just set the property to transparent, it should available but I could not find it. Thank you again for your help, let me know if we have some other way to make a control transparent.
Best regards,
Guangde
06-02-2007 02:26 PM - edited 06-02-2007 02:26 PM
Message Edited by mikeporter on 06-02-2007 03:27 PM
06-02-2007 10:39 PM
06-04-2007 04:36 AM
guangdew1 wrote:
I know I can do it with a on/off control on the front panel, but I don't know whether we can click other kind of controls such as a guage to bring up a sub-window. This is for input some settings about this control.
As the title of the Question goes, there is no need to place a button & make it transparent n all those kinda things...
You can simply achieve it thro' the Gauge's Mouse Down event. Still if you want to discard the Rt Click on the Gauge, you can achieve it thro' the Mouse Down? event of the Gauge.
Please see the attached Vi for more clarity.
06-04-2007 11:04 AM
06-04-2007 10:57 PM
@guangdew1 wrote:
Dear Partha, thank you for your response. I'm not familiar with the Event Structure so I took some time studying the example you posted. I have a few questions regarding using the Event Structure in my application.1. What is the purpose of the ""Guage": Mouse Down?" case? Can you explain it to me?2. I noticed that the While Loop is waiting for an event to happen, then the loop will run into next cycle. My application updates data every second, so if I put in a Event Structure, it will keep on waiting for an event to happen. My question is, is there a way to let the Event Structure act when there is an event but goes through if nothing is happening?Again, thank you for your help and best regards,Guangde
1. "Mouse Down?" is a filter event. For that matter, all events with the "?" symbol are Filter events. Events without it are Notifier events. What I ve done is to eliminate the pop-up of sub-window on the Rt Click of the mouse. Thats why I poll for the Rt button [whose value is 2] & discard it when it happens.
2. I understand that you want to update your data each n every second; that means you ve to wire a very small value like 1ms to the time-out terminal on the top-left corner of the Event Structure so that your acquisition code sits inside the Timeout case & does its operarion. This way, the ES ll keep on waiting for an event to hapen, but does the data updation if nothing is happening.
To know more of the Event Structures, please see the links below.
http://zone.ni.com:80/reference/en-XX/help/371361B-01/lvconcepts/using_events_in_labview/
http://zone.ni.com/reference/en-XX/help/371361B-01/lvhowto/caveatsrecmndtnsevnts/
http://zone.ni.com/devzone/cda/tut/p/id/3331