04-08-2013 05:48 AM
Hi,
I would like to get access to wire properties in block diagram like here: https://decibel.ni.com/content/docs/DOC-6696
My problem is that when I put Property Node or Invoke Node with proper reference then I can't choose any methods or properties (like CleanUpWire in the example above).
I thought that if I will wire up proper reference to GObject -> Wire then I'll be able to choose any of properties in Property Node, like those:
Property | Description |
---|---|
Breakpoint Status | Reads or writes the status of a breakpoint on a wire. |
Description | Sets or returns a description of the wire. |
Is Broken? | Returns TRUE if the wire is broken or in a bad state. |
Joints[] | Returns an array of all joints of the wire, which includes intersections, bends, and end points. |
Label | Returns a reference to the label associated with this wire. |
Probe | References the probe associated with this wire. |
Terminals[] | References the terminals connected by this wire. |
Wire Width | Returns the width of the wire in pixels. |
How to access this properties and use in QD?
In the same example is used "To More Specific Class" function with "Wire" connected to it. Here i have the same problem. When I right-click on "To More Specific Class" and create constant then I can't find there "Wire". How to find such components?
04-08-2013 06:27 AM
04-08-2013 11:44 AM
One small thing... CleanUpWire is a method, not a property. You won't find it in the Property node; you need an Invoke node.
04-08-2013 11:55 AM
Yes, I know that, but thanks anyway.
04-08-2013 03:48 PM
The main question was answered actually, but I have some additional one. Is it possible to get text in label (which I programmatically, using QD, put on BD) highlighted in that way that after label shows on BD I can just start typing proper name for label?
I thought that Text -> Selection Property for label will be OK for my purpose but I can't achieve what I want with this. In Help is information that "If you want to highlight the text, you must set key focus on a control before you use the Selection property."
But I don't have idea how to turn on this "key focus" for labels.
Any advice?
PS Sorry for language errors
04-09-2013 05:49 AM
I found a solution (using user32.dll mouse functions) here and tried it like this:
It'll work if you're using Windows, otherwise I haven't found a solution. Based on the author of this solution, I guess there's no better way.
04-09-2013 08:52 AM
Very interesting solution. Thanks, I'll try that.