LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

key focus confusion

When I use the property node for key focus, the display is different than when the focus is obtained by just tabbing through the controls.
 
Is there a way to set focus and have it look as if I tabbed to it?
 
Thanks in advance.
 
0 Kudos
Message 1 of 13
(3,841 Views)


@jspaarg wrote:
When I use the property node for key focus, the display is different than when the focus is obtained by just tabbing through the controls.
 
Is there a way to set focus and have it look as if I tabbed to it?

What do you mean to say ? It appears the same on both the conditions in my PC, using LV 7.1...
- Partha ( CLD until Oct 2027 🙂 )
Message 2 of 13
(3,834 Views)

I am also using 7.1 and they appear different.

When I use a property node to set key focus a box appears around the control.

When I tab to the control then just a cursor appears inside numeric controls.

 

They are definitely different on my app.

 

0 Kudos
Message 3 of 13
(3,826 Views)

I thought of Boolean controls only. Smiley Tongue

You didnt even mention that they re Numeric controls in your post. Thats the confusion... Smiley Wink

But, see the screenshots attached. They both look like same.

Switch the Keyfocus button to see it for yourself... Smiley Wink

Also, try it out for Dialog controls, if you wish.

- Partha ( CLD until Oct 2027 🙂 )
Message 4 of 13
(3,818 Views)
A simple way to avoid the box around controls is to use system controls. They will match the rest of your system and act the same as well. The only downside is that you can't change the colors of these controls, but there won't be a box around them when they receive focus.
0 Kudos
Message 5 of 13
(3,819 Views)


 


@marc A wrote:
A simple way to avoid the box around controls is to use system controls. They will match the rest of your system and act the same as well. The only downside is that you can't change the colors of these controls, but there won't be a box around them when they receive focus.


 

I interpret that by System controls, you mean the Dialog controls, right... ?

But, there appears a BOX around the control still.

Read the last line of my orevious post. Thats why I told him to try out with Dialog controls also... Smiley Wink

You can change the Numeric in my Vi to a Dialog Spin control & see it for yourself, or see the attached VI.

- Partha ( CLD until Oct 2027 🙂 )
Message 6 of 13
(3,809 Views)
Both of the VIs that you sent still show a box around the control.
The first one, the box is larger, the second one the box is on adjacent pixels around the control.
 
In both, the contents of the control are highlighted.  Whereas when I tab to the control, only a cursor appears.
 
The control that has my attention right now is a timestamp control.
 
When I change focus to that control, not only do I have a box around it, the entire contents are highlighted.
 
Although I have had the issue for quite a while.
 
Thanks for the efforts, I really appreciate it.
 
Keep them coming.
 
 
0 Kudos
Message 7 of 13
(3,802 Views)

Is there a system control for timestamp control?

I don't see anything like that.

 

0 Kudos
Message 8 of 13
(3,801 Views)

Parthabe: Maybe the language is different, but they're called system controls in the English version of LabVIEW.

jspaarg: You can make a numeric system control, then go to format and precision, change the format to absolute time and you have a timestamp. The only thing you're missing is the button to bring up the calendar.

0 Kudos
Message 9 of 13
(3,798 Views)

I don't really need the date button.  A timestamp control can be highlighted on any elemet within it; so my user can inc/dec date, hours, mins, etc.

 

I looked in both examples and help and there is no listing for "system controls" or controls system (or any variation that I could think of).

 

Where are they?  I believe that they have characteristics that make them behave based on local setups on a PC (but I am not sure).

 

I believe that even with system controls, when focus is assigned, the entire contents are highlighted.  While this is only an asthetic issue, it looks bad especially on something as large as a timestamp.

 

 

0 Kudos
Message 10 of 13
(3,795 Views)