How can I find the coordinates of individual controls inside a custom control?

I have a custom control that contains 44 smaller custom controls.
I can get the coordinates of the 44 embedded custom controls by getting the controls[] property of the main control, but I cannot find a way of getting the coordinates of the controls inside each of these smaller custom controls.
Is there a way of getting at the coordinates of custom controls that are nested several layers deep?
x9561 (148440)
4/15/2008 12:10:04 AM
comp.lang.labview 35213 articles. 1 followers. vasusachin24 (1) is leader. Post Follow

3 Replies

Similar Articles

[PageSpeed] 28

Hi Erik,
see the attached example. It searches for all reference, also this ones which are in other controls. After you have all references you can read the position of it. If this not help, please describe in more detail what you want.
Hope it helps.

Unbenannt 1_LV80.vi:
http://forums.ni.com/attachments/ni/170/316221/1/Unbenannt 1_LV80.vi
x9561 (148440)
4/15/2008 8:40:04 AM
That was EXACTLY what I was lloking for.  Thank you very much.
x9561 (148440)
4/15/2008 7:40:05 PM
For future reference and for any LabVIEW users who have older versions here are the Front Panel displays before running the VI along with the Wiring Diagram with each of the four cases for handling the various types of ClassIDs that can contain child controls.  X1, X@, Y1, and Y2 are the coordinates of the top left and bottom right corners of each control.  These coordinates can then  be used to determine which control the mouse is pointing at.
In my own project I did further evaluation to eliminate all parent controls (controls that contain other controls) and passed along only the controls that were end-nodes (controls that contain no other controls). Also, the control's refnum was stored for later use.
The bottom picture shows the data gathered during the execution of this VI.
Thanks again, Mike!
<img src="http://pic80.picturetrail.com/VOL953/3988049/19494458/313523082.jpg"> 
<img src="http://pic80.picturetrail.com/VOL953/3988049/19494458/313523094.jpg"> 
<img src="http://pic80.picturetrail.com/VOL953/3988049/19494458/313523087.jpg"> 
<img src="http://pic80.picturetrail.com/VOL953/3988049/19494458/313523084.jpg"> 
<img src="http://pic80.picturetrail.com/VOL953/3988049/19494458/313523083.jpg"> 
&nbsp;<a href="http://pic80.picturetrail.com/VOL953/3988049/19494458/313523094.jpg" target="_blank"></a>
x9561 (148440)
4/16/2008 8:10:05 PM

Similar Artilces:

Can a Combo Box control a Tab Control, like an Enumerated Ring control can
Is there any way to have a Combo Box control a Tab Control.&nbsp; An Enumerated Ring control can if all the names match "Exactly", question is can a Combo Box do the same, especially within an Event Structure? I haven't been able to figure it out.&nbsp; Enclosed is a test VI that has an enumerated ring example, and a combo box with the same data.&nbsp; Thanks for your help... Test Tab Control [1].vi: http://forums.ni.com/attachments/ni/170/215375/1/Test Tab Control [1].vi A tab control can be treated like an enum, so your question comes down to: "Can I map a ...

*Custom Control Help! Using a classic C-Style custom control.*
*Custom Control Help! Using a classic C-Style custom control.* Hello, I am attempting to port a classic C-style custom control into a .net application. Using Visual Studio 6, This was originally done via the resource files in the project, using a "CustomControl" item in the resource editor, and pointing the "windowclass" to the specific class name of the developed custom control. I would like to get the .net flexibility. This window class is registered in the dll using the following code: wc = Template; wc.style |= CS_DBLCLKS; wc.lpfnWndProc = RecordingWn...

Invisible control within a custom control
I have a custom control made up of a cluster that (somehow) contains invisible controls within it.&nbsp; These are enums that were not typedef'ed and I now need to change them.&nbsp; Can I access the properties of an invisible control inside a custom control so I can view them adn change them? Thanks Create a property node for your cluster and get property "controls[]". &nbsp; Now iterate over the array of control references and set them to visible via another property node. (see image for a simple code draft) &nbsp; <img src="http://forums.ni.com/attachments/ni/170/243031/1/MakeVisible.png"> &nbsp;Message Edited by altenbach on 04-20-2007 01:51 PM MakeVisible.png: http://forums.ni.com/attachments/ni/170/243031/1/MakeVisible.png <img src="http://forums.ni.com/attachments/ni/170/243039/1/Show%20Hidden%20Element.png"> Nice! :smileyvery-happy: :smileyhappy: :smileytongue: Thank you! Ben ...

Finding control type from control reference
I have a stric type control (A) on the front panel of a VI. This control is a cluster made up of a number of instances of another strict typed control (B). Later control (B) is also a cluster made up of two controls, a check box and an enum. In the VI there is a value change event handler for control A. (I have included the check box to conrol B, it previously had only the enum). There is existing code in that event handler that works on the enum control. When I check a box, event handler is called and it tries to detect which enum's value has been changed. Since none has been changed, it enters into an endless loop.What I want to do is use the CtlRef (terminal?) of the event handler to execute the previous code if the control is enum, otherwise do nothing. (I'll place the code in a case structure). How can I find the controls type from CtlRef?What are those things inside the event handler called (e.g. OldVal, NewVal, CtlRef)?Thanks a lot for your time!Have a very nice weekend! From what I understood of&nbsp;the description you provided, it appears that you are looking for the class ID of the controls.&nbsp; Each control type has a class ID. You can get the class ID's from the controls within a cluster.&nbsp;&nbsp; To see if I understood correctly, please see the attached example.&nbsp; If it is not what you are looking for, please provide clarification (and do not rate my post). Thanks. R Oops..&nbsp; I didn't answer the 2nd part of...

How to easily control multiple controls in labview
How can I easily control multiple controls with a single write to in Labview? For instance, I need to update 50 different boolean indicators. When I update them one at a time I use a cntrl refrence in my event structure, but outside of an event structure how can I easily cycle through them and update without making 50 local variables if I need to do them all at once? Why don't you use an array of boolean indicators? Have a look at the example attached <a href="http://forums.ni.com/ni/board/message?board.id=170&amp;view=by_date_ascending&amp;message.id=204328#M204328" target="_blank">here</a>, which can also be applied to this. You should usually avoid updating the value of a control from more than one place, though (unless it's something like initialization, where you can guarantee not having race conditions). Other alternatives: using an array of booleans or using the picture control to create the image. The way i use these booleans in my UI, I had to make them separate so I could arrange them in a user friendly way. And yes this is just for initialization so they won't be getting updated in two places at once. ...

How can i use labview.tlb to control Labview from an external application?
Hi, I've been told by a labview engineer that i could use the file labview.tlb located in the labview install folder to control labview from an external application (in my case, a C# app). I'm using Labview 6.1 under Windows 2000. This article confirms that: "ActiveX and LabVIEW" http://zone.ni.com/devzone/conceptd.nsf/webmain/5401BE584FBAEECE862567C2006D36C7?opendocument But i've not been able to find out how to use this file to achieve what i want. I just want to be able to open/close labview, open/close a vi, start/stop a vi, hide/show a vi from a C# application. Th...

Valve control
Hello, I am still trying to figure out a method of controlling a discharge valve for compressor testing.&nbsp; The valve is controlled by a slider, but when it hits a certain point of being closed, the compressor surges.&nbsp; At that surge point, I want the user to click a button, and then have the valve slowly open while the data is being sent to&nbsp;a file.&nbsp; This way, the data is recorded and the valve opens to prevent damage to the compressor all at the click of one button.&nbsp; I have the VI up and running, all except for the opening part of the valve.&nbsp; I have included a simple example of where I am going with the valve control.&nbsp; Any advice would be appreciated, for then I can implement that code for the valve opening into the rest of my programming. &nbsp; Thank you, &nbsp; &nbsp; Jmc Valve control.vi: http://forums.ni.com/attachments/ni/170/198874/1/Valve control.vi ...

tab control inside another tab control
Hi. Is it possible to put a tab control inside another tab control. I tried it several times, but for some reason this doesn't seem to work. Can someone confirm this, or tell me what the trick is. Thanks. -- Georges The only way I know to do this is to put a subform on the first tab control. Then you can put your second tab control on the subform. If you do this repeatedly, however, you will find the form loading rather slowly. HTH - Turtle "Georges Heinesch" <news@geohei.lu> wrote in message news:3fe82fb8$1_2@news.vo.lu... > Hi. > > Is it possible to...

can Labview 7.0 control an instrument without the labview driver?
hellow,i have an instrument which do not have the labview driver,its output signal is RS232,so can i use labview7.0 to read the signal? thanks! Another possible option is to use the Instrument I/O Assistant. It is an interactive tool that generates Instrument I/O and response parsing code for you. It is very helpful in establishing a connection and helping parse instrument response data. It is pretty high level and basic, so if you want to utilize any special serial VISA functionality it may not go as deep as you would like - but it can definitely help get you started. ...

How do you control seperate motors with Labview through a remote control?
Forgive me if I am not typing the question correctly, or if it is a stupid question. I am only fourteen and only started learning about Labview.. I would appreciate all help possible. Thanks What type of motors are you trying to control?&nbsp; How do you have them/plan to have them connected to your computer?&nbsp; When you say you want to control remotely, do you mean that you don't want them connected to a computer or that you want to communicate remotely through your computer (no cables)?&nbsp; The more information you can give the better help you will receive. Cheers Hi LouidSilence, It would also be helpful to know what version of LabVIEW you are using.&nbsp; It's impressive that your starting to learn LabVIEW at such a young age, it will be challenging but worth it!&nbsp; Well first off, thanks for asking questions to my questions, it helps me too :) The kind of motors I am trying to control are IFI Robotics Multi-Speed Motor Connect to PWM or RLY port (12 volt).. I am trying to remotely control it wirelessly, through an IFI Robotics Isaac16 EDU Robot Controller with 900MHz Short Range Radio Modem. Hope this Helps.. Oh yeah, and the version of LabView I am using is 8.5 Hi LoudSilence, It looks like your controller is designed to be&nbsp;programmed in BASIC.&nbsp; What you will need to do in order to control it with LabVIEW is figure out what the function calls&nbsp;are that will be required to activate your PMW signals etc.&a...

Reading controller data into LabVIEW through serial connections to controllers?
I'd like to read data from environmental chamber controllers (System Plus) into LabVIEW through RS232 connections.&nbsp; Has anyone done something similar? &nbsp;I see interfacing with the serial controllers as the biggest obstacle and although not directly related to LabVIEW programming, I'm hoping someone here can give me some advice or resources on how best to do so now days. &nbsp;My first thought is to write a program with VB or C++ to act as a terminal and write the data to a text file for LabVIEW to poll.&nbsp; Aside from using Telix decades ago to work with BBSes, my only other serial experience consists of interfacing with a Kiethly multimeter using a C++ program.&nbsp; &nbsp;I would rather not use multiple PCs but I have never worked with more than one serial port on a computer before in the past.&nbsp; Perhaps LabVIEW itself already provides for multiple serial card communications (wouldn't that be perfect)? &nbsp;Any info would be great. &nbsp;Regards, &nbsp;Dave&nbsp;&nbsp; LabVIEW has had support for serial communication for as long as I've used it and may have been part of version 1. It also supports multiple serial ports&nbsp;- built-in and USB-&gt;RS232. There are even a couple of shipping examples. I've not used this particular chamber but I've used several with serial connections. It's a matter of getting the programming manual and working through it if a driver does not al...

How DAQmx controls can be customized
Is there any way to customize DAQmx controls because "Customize Control" option is disabled and greyed when a DAQmx control is selected. Just like dialog Controls, can we customize DAQmx controls in such a way that they are shown according to the Windows theme. Hi Anderomeda, You should be able to just right-click on the control and follow the tree as you can see below: If this isn't available for you, then could you tell us what version of DAQmx and LabVIEW you have? Thanks, 733245-Customize_DAQmx_Control.GIF: http://forums.ni.com/attachments/ni/170/148560/1/733245-Custom...

How do I use a LabView control element as ActiveX Control in another application?
I am was trying to include some simple ActiveX Controls(sliders, buttons) in my VBScript. It worked with other ActiveX Components from the web, however I wasn't able to include the LabView ActiveX Controls because I was missing the necessary IDs. Moreover I was able to test the LabView control by inserting it into the VC++- Test Container. But I still can't find the necessary IDs... I don't believe that any of the LabVIEW controls (except for 3D Graphs) are ActiveX controls so I'm not sure what control you were able to insert into the VC++ container. What's the exact name ...

How do I control flow through MKS Mass Flow Controller using Labview
How do I control flow through MKS Mass Flow Controller using Labview? Im new to LabVIEW please let me know bout it in detail. Thanks for all the help. ...

Front panel controls and indicators flicker inside Tab Control
I'm using a Tab Control to organize controls and indicators by functions or processes.&nbsp; I notice that all of them no mater which tab I?m in, flicker.&nbsp; I don't have any item overlap each other.&nbsp; Even more strange is that when I made a similar Tab Control within the same application and transferred all of the controls and indicators to it, the flicker went away.&nbsp; In the end I kept the new tab control and deleted the old one and everything is working great. &nbsp; Anyone has any idea why this happened?&nbsp; Also I wanted to post this problem/solution in case anyone else has a similar problem in the future. &nbsp; Hector Soto &nbsp; &nbsp; hi there &nbsp; what's your LV version? i remember some bugs with LV 6.x and tab pages. &nbsp; what controls do you use?&nbsp;dou you handle with huge data amounts in graphs, pictures etc.? Or do you write to controls&nbsp;with very high rates? &nbsp; The best next step would be to post&nbsp;a stripped code that reproduces the behaviour so we can take a look at it. I'm using LV 8.5 for Window 2000.&nbsp; As I mentioned in the original post, the problem went away by just creating another Tab control and moving, without any modifications, the controls and indicators to it. &nbsp; Thanks for the reply, Hector ...

How can I set the caption text of picture controls inside an array or how can I choose which array element is assigned using the array elements caption text property.
I have 8 picture controls inside an array and I would like to set the caption text of these controls. I have used the property node of the array and used the array elements property caption text to set the text. &nbsp; The problem is however that&nbsp;I set the same text to all the picture controls inside the array. My question is how to set caption text of specific elements (Picture control) that I have so far only been able to access using the array elements caption text property. &nbsp; &nbsp; &nbsp; Some more help &nbsp; 1 You could use the caption of the array and...

Where can I find free ActiveX controls?
Hi, I would like to know your best websites where I can find ActiveX controls (.OCX), thanks a lot in advance! ...

Where can I find a wired servo controller?
I would like to find an inexpensive wired servo controller to operate a small RC type servo such as a hitec, futaba, etc. Is there such a thing that a person can purchase? You can build one easily enough. Google for "servo tester". JM On 11 Feb 2004 17:35:36 -0800, brand@rushmore.com (SDNomad) wrote: >I would like to find an inexpensive wired servo controller to operate >a small RC type servo such as a hitec, futaba, etc. Is there such a >thing that a person can purchase? How were you going to control the servo? Or what were you wanting to use to control...

Can I create an ActiveX control from LabVIEW
I have some LabVIEW code that I would like to convert into an ActiveX control. There was rumours that this was to be included in Version 7, but I can't find it. Is this possible? Hello, Currently, you cannot create ActiveX controls in LabVIEW. I agree, it would be great to be able to embed custom LabVIEW code into other applications via ActiveX. I will make sure that this idea is suggested. In the meantime, if you want to embed your code into other VIs, consider the remote panel or subpanel capabilities of LabVIEW. These capabilities creates a shell containing the VI, much like an Ac...

Disk model controls whether one can control boot order?
I've several systems built around: http://www.supermicro.com/Aplus/motherboard/Opteron/HT1000/H8SSL-i.cfm WIth Western Digital drives - WDC WD800JD-00MS - the BIOS lets me choose from which disk booting is to occur. With the Seagate equivalent, the BIOS only lists one drive on that "page". It really does appear to be a matter defined by the drives. If I open a "list only one drive" machine and replace its two Seagate drives with Western Digital drives, it becomes a "list two drives" machine. I cannot imagine how the drives would be causing this in the ...

VIs that allow you to test if a given control is a control of a particular LabVIEW class type
The attached zip file contains VIs are saved in LabVIEW 8.5. &nbsp; Included in the .zip are three VIs you may find useful when working with LabVIEW classes. - Qualified Name Array To Single String.vi takes a VI's qualified name, given as an array of strings, and converts it to a single colon-delimited string. This VI may be useful for working with VIs owned by any library type, and it is used as a subVI of the other two VIs in this .zip file. - Is This Control Of This LabVIEW Class.vi takes a control refnum and a LabVIEW class refnum and tells whether the control is an instance of the given LabVIEW class. It returns true for regular class controls/indicators and for XControls of the class. - Is This Control Of LabVIEW Object Class.vi is the same as the previous, except it does not take a class refnum for input. LabVIEW Object is the built-in class that is the ancestor of all other LabVIEW classes, and this VI specifically checks to see if the given control is an instance of this class. The second two VIs in this .zip file are both password protected. In a built application, both will return a "not supported" error. &nbsp; Detecting Controls of Specific LVClass Types.zip: http://forums.ni.com/attachments/ni/170/279037/1/Detecting Controls of Specific LVClass Types.zip I'm seeing an&nbsp;1063 error when I try to use the "Get Control Data Type.vi" on a control extracted from a cluster or an array. The error does not show up if I...

How can I set the tab order of text box controls on each page of a tab control?
I need to be able to select the tabbing order of individual controls on a single page of a tabbed control. How?? In LV 6.1 an up you should be ablel to right click on the edge of the tab control when the tab-page in question is selected. The bttom selcetion in the pop-up is "Reoder controls in page..." selecting this option will switch editing modes to allow you to specify the ored, just like in a cluster. I seem to remeber in older versions you had to drag the tabable controls off the tab control, specify the tabbing oder and then drag them back on. The oldest version I have on ...

Re: How can I select matched controls for 1:m case-control study
Zhang, =20 What I think you are looking for is a simple SQL code should get you = what you want in the fewest number of lines of code and still keep the = readability to a maximum. =20 =20 Search our arcives for: Simple data querying problem since: 01 december 2004=20 =20 And you will find a solution to a problem that you can easily modify to = fit your needs. =20 HTH Toby Dunn ________________________________ From: SAS(r) Discussion on behalf of zhang yewu Sent: Tue 12/28/2004 10:17 AM To: SAS-L@LISTSERV.UGA.EDU Subject: How can I select matched controls for 1:m case-control study Dear SAS-L, I have two data set, one is for patients(cases), and the another for non-patients(controls). the variables of two data sets are same. I = should pick out m matched nopatients for each patient. In each matched = subgroup, a patient and m non-patients should be same address, sex, and their age difference shoud be within 6 months. how can I make it? Thanks ZYW ...

how can i use labview and datasocket to control a GPIB...
how can i use labview and datasocket to control a GPIB instrument remotely via a standard web browser i have the labview 6.0 base package running on a windows machine and also have a windows 2000 server. can my task be performed or do i need any additional software/add-ons Unless you already have the GPIB card for the server, it's about the same price to get an NI ENET-GPIB (or Agilent LAN-GPIB). These devices control your GPIB instruments through the LAN. VISA makes them program just like any other GPIB instrument. If you already have the GPIB card in the server, it depends upon your...

Web resources about - How can I find the coordinates of individual controls inside a custom control? - comp.lang.labview

Orthogonal coordinates - Wikipedia, the free encyclopedia
is a constant. For example, the three-dimensional Cartesian coordinates ( x , y , z ) is an orthogonal coordinate system, since its coordinate ...

ISIS may use PlayStation 4s to coordinate Paris-like attacks
Late on Friday night, Paris was brutally hit in a highly coordinated terrorist attack that ISIS later claimed responsibility for planning. At ...

OPEN BORDERS IDIOCY: Rubio, Ryan and Graham Coordinate Attack on Trump over Islamic Immigration
By Julia Hahn The Speaker of the House and two presidential candidates—all of whom have supported amnesty and immigration expansions—are coming ...

Abortion Humor: Hillary and Cecile To Coordinate Pantsuits
Planned Parenthood has endorsed Hillary Clinton for president following Congress' vote to defund the abortion business.

Cabinet Said to Create Body to Coordinate Affairs of Financial Regulators
Secretariat to focus on aiding cooperation between the central bank and main financial regulators, people close to matter say

ISIS Taps Dark Web, Encryption Apps to Coordinate
ISIS and other terrorists are able to communicate under the radar of Western intelligence agencies.

Pogo wins $1M in Verizon contest with an app to help parents coordinate carpools
... plans to release its app in early 2016. The idea is to give parents the information they need to share more rides. Pogo can be used to coordinate ...

US Peacekeeping Expert to Coordinate Sexual Abuse Response
The United Nations secretary-general has appointed a U.S. security expert to coordinate improvements in the U.N.'s response to reports of sexual ...

Hillary Clinton Says She Does Not Coordinate With Super PAC She Reportedly Raised Money For
The Democrat said “we don’t coordinate with” a super PAC for which she has reportedly raised money.

Dedicated Bicyclist Creates Ingenious Doodle Art Using the GPS Coordinates of His Traveled Routes
A photo posted by Stephen Lund (@roadrashyyj) on Jun 24, 2015 at 3:01pm PDT Bicyclist Stephen Lund ingeniously creates amazing doodle art that ...

Resources last updated: 3/19/2016 11:10:50 AM