01-27-2016 03:02 PM
@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?
01-27-2016 03:43 PM
see this vi in this vi you can change a knob and number but string control act like indicator
01-27-2016 03:46 PM - edited 01-27-2016 03:48 PM
@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> ---'
01-27-2016 04:02 PM
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.)
01-27-2016 04:30 PM - edited 01-27-2016 04:37 PM
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
01-27-2016 05:18 PM
01-27-2016 05:31 PM
sorry for my fault altenbach
I fix it and also develop last code
01-27-2016 06:25 PM
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.
Ben64
01-27-2016 06:59 PM
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.
01-27-2016 08:20 PM - edited 01-27-2016 08:21 PM
@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...
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'