LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

控件UI放大

Solved!
Go to solution

想请教大家,如何在前面板中放置一个布尔控件,当鼠标移入的时候,控件的图标会放大。

谢谢大家!!!

0 Kudos
Message 1 of 15
(5,101 Views)

Translation care of Google:

 

 


Would like to ask you, how to place a Boolean front panel control, when the mouse is moved when the zoom control icon.

Thank you! ! !

Your question is not clear. There is no zoom control icon, and no inherent  zoom capability in LabVIEW. Are you referring to the Navigation Window? If so, that's just a static window. You cannot place controls on it.

 

0 Kudos
Message 2 of 15
(5,088 Views)

so , thank you so much, I think of that maybe I just want to zoom this control.Tonight I test one method to work out it. I use one event to mouse move in and one to move out the last use use property node to change its' . so this question is clear....

 

Thank you so much.

 

 

 

0 Kudos
Message 3 of 15
(5,084 Views)

 


@Bit880 wrote:

... so this question is clear.


No, it is not clear. What control do you want to zoom ("this control")? Is this a graph indicator? Change what "its"? What is the boolean supposed to indicate? Zoom status?

 

0 Kudos
Message 4 of 15
(5,078 Views)
Solution
Accepted by topic author Billy.Deng

你好,

 

你看看下面这种效果是不是你需要的:注册一个鼠标进入的事件,当鼠标进入控件所在的区域就会触发该事件,然后再事件框中通过属性节点调整控件的大小就可以了,当然要注意在鼠标离开时把控件大小改回原来的值。

1.JPG

2.JPG

0 Kudos
Message 5 of 15
(5,065 Views)

So what is your question?  Does the code you show work or not work?

0 Kudos
Message 6 of 15
(5,062 Views)

oh...I guess I am  a inattention.Yesterday I test two kinds control, one is boolean , the other is numeria.boolean can use, zoom status, move in ,zoom out ,move out ,zoom in. however, I want to make it more human. So I test it in labview PDA , but it can not use. the numeria is no satisfaction.

 

thank you ,I think so ,you are right.  But I have some new thinking.

 

 

 following is new question:

 

 what is control strict define(it show in PDA), & what will use strict define?

 

 

0 Kudos
Message 7 of 15
(5,044 Views)

 


@Bit880 wrote:

oh...I guess I am  a inattention.Yesterday I test two kinds control, one is boolean , the other is numeria.boolean can use, zoom status, move in ,zoom out ,move out ,zoom in. however, I want to make it more human. So I test it in labview PDA , but it can not use. the numeria is no satisfaction.


There is no Boolean control that does that. Are you sure you're not talking about a graph's palette??

 

 

 

Do you have some sort of custom control?

 

 


 what is control strict define(it show in PDA), & what will use strict define?


This is defined in the LabVIEW Help. A typedef is a control that allows you to define a data type and have all instances of that control automatically update whenever you change the control (though there are a few limitations). A strict typedef extends that to include visual elements, such as size and color.

 

0 Kudos
Message 8 of 15
(5,038 Views)

您的方案我试过了,是可行的。

   但是我又想到一个新的问题,我可不可以把这个放大的功能封装起来,用子Vi的格式,想什么时候调用就什么时候调用呢?

 

0 Kudos
Message 9 of 15
(5,033 Views)

I guess I am not express clearly. I had not use custom control. I just use event struct to change the control size, it means i resize it.

 

thank you.

 

Smiley Very Happy

0 Kudos
Message 10 of 15
(5,030 Views)