LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

can you enable a scroll bar in a disabled control


@Hatef wrote:

use local varible read inside the control so it is control but act as indicator 


Can you explain that a little bit more?

 

How would that solve the OP's original question?

0 Kudos
Message 11 of 33
(1,994 Views)

see this vi  in this vi you can change a knob and number but string control act  like indicator 

0 Kudos
Message 12 of 33
(1,978 Views)

@Hatef wrote:

see this vi  in this vi you can change a knob and number but string control act  like indicator 


Hatef, that's not the point here. The original question is regarding the control being able to act like an indicator to the user (no changing the value) while still being able to scroll. Setting the value of the control programmatically is a different, elementary concept.

 

P.S. It's a good habit to throw a Wait function in your example code so newbies don't kill their processors when they use the code.

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 13 of 33
(1,970 Views)

That is pretty much a hack.  It doesn't really behave like an indicator.

 

All you are doing is banging the hell out of the CPU updating a control within the cluster by pasting some of the information back into it based on something stored in a different control.  (An event structure would be better.)

0 Kudos
Message 14 of 33
(1,960 Views)

so If I could understand well this time you need some thing like this i use a small trick so string control is disable to use but there a slid there to rolling up or down the text

0 Kudos
Message 15 of 33
(1,939 Views)
  • Please don't maximize the front panel to the screen.
  • Please don't place irrelevant and meaningless code, such as "request deallocation".
  • the stop terminal belongs inside the stop event frame so it correctly resets at the end of the program.
0 Kudos
Message 16 of 33
(1,916 Views)

sorry for my fault  altenbach Smiley Sad
I fix it and also develop last code 

0 Kudos
Message 17 of 33
(1,898 Views)

James.Morris a écrit :

 


A decoration wouldn't work because he would have to be able to make it visible/invisible. I've done this before with a boolean instead of a decoration.


Decoration can be made visible/invisible but it is less intuitive. Additionnally after the alignment of the decoration over the control I usually group them to make sure they stay aligned.

 

Enable Disable Editing.png

 

Ben64

Message 18 of 33
(1,881 Views)

I had said decoration, but it doesn't have to be.  It is easier to get the reference to a control or indicator and set the properties that way.  So a boolean button, picture box, another string control, could be made transparent (the "classic" controls are the ones where you can more easily set them to be completely transparent) and sized and placed over top the controls in the cluster you want to partially disable.

0 Kudos
Message 19 of 33
(1,863 Views)

@ben64 wrote:
Decoration can be made visible/invisible but it is less intuitive.

Ben64


Ah, didn't know that trick. Thanks!

 

On a side note, OP hasn't responded a single time to this 20-comment-long thread... Smiley Very Happy

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 20 of 33
(1,844 Views)