01-01-2014 12:30 AM
Hi all,
I started my own xcontrol by putting a single path control in the UI. In the event of direction change, I set the the property of the indicator of the path object based on the "direction". But I found that it doesn't really change the control (path object) to indicator (since the file browser button still there).
Any one has any idea how to make it work?
01-01-2014 04:24 AM - edited 01-01-2014 04:28 AM
You should also change the visibility of the browse button (as well as the disabled status and background color).
(I believe the "indicator" property is only available in edit mode)
(Also note that your BG color property node belongs after the case structure, because it needs to be written in either case. Only the color constant belongs inside the case (or use a "select" function instead of the case structure).)
01-01-2014 12:54 PM
@altenbach wrote:
You should also change the visibility of the browse button (as well as the disabled status and background color).
(I believe the "indicator" property is only available in edit mode)
(Also note that your BG color property node belongs after the case structure, because it needs to be written in either case. Only the color constant belongs inside the case (or use a "select" function instead of the case structure).)
You are right. To set the browser button invibible will make it "more" like the indicator mode. But it still have the space left after the browser button becomes invibsible. I tried long time but still can't get rid of that space. I think that's what I can do
01-01-2014 02:36 PM - edited 01-01-2014 02:36 PM
Please explain what you mean by "space"?
You can also place a path control and a path indicator on top of each other and show the correct one according to the xcontrol direction. Have a look at the thermometer xcontrol example in the example finder (search for xcontrol). That's exactly what they are doing.
01-01-2014 02:47 PM
@altenbach wrote:
Please explain what you mean by "space"?
You can also place a path control and a path indicator on top of each other and show the correct one according to the xcontrol direction. Have a look at the thermometer xcontrol example in the example finder (search for xcontrol). That's exactly what they are doing.
As shown in above image. The top one is my xcontrol, in which I wrap a path control and I set the it indicator by changing the color and make the browser button invibible. But you will see there is still space left (red region).
The bottom one is the standard path control. After we change that to indicator, the browser button and space gone.
01-01-2014 02:55 PM - edited 01-01-2014 02:56 PM
Well, that's why you should attach some code. I did not know you are using silver controls (I was trying the moderns path control instead).
What is your LabVIEW version? (I don't see that "space" when hiding the browse button).
Anyway, use the solution I just suggested.
01-01-2014 03:04 PM
@altenbach wrote:
Well, that's why you should attach some code. I did not know you are using silver controls (I was trying the moderns path control instead).
What is your LabVIEW version? (I don't see that "space" when hiding the browse button).
Anyway, use the solution I just suggested.
I am using LV2013. You mean in the version your are using, evening you , make the button invisible, the "space" will be hided also? Anyway, I think stacking indictor and control is good enough for me. Thanks.
01-01-2014 03:10 PM
@dragondriver wrote:
I am using LV2013. You mean in the version your are using, evening you , make the button invisible, the "space" will be hided also? Anyway, I think stacking indictor and control is good enough for me. Thanks.
If I use LabVIEW 2012, place a silver path control, then hide the browse button (right-click...visible items), the frame border is even. I have not tried programmatic changes.
01-01-2014 03:29 PM
@altenbach wrote:
@dragondriver wrote:
I am using LV2013. You mean in the version your are using, evening you , make the button invisible, the "space" will be hided also? Anyway, I think stacking indictor and control is good enough for me. Thanks.If I use LabVIEW 2012, place a silver path control, then hide the browse button (right-click...visible items), the frame border is even. I have not tried programmatic changes.
I tried the same way and see the same thing too. But just don't know why it behave differently when I do that with program.
01-01-2014 03:30 PM
"What is your LabVIEW version? (I don't see that "space" when hiding the browse button)."
Control style does seem to have some effect- Scale object with pane doesn't- Hi-Ho Silver! (DK is going to go nuts when reads this)