LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ring question

Hi,
1.Can I programmatically enable an item in a ring , after it has been
disabled ?
2. Can I programmatically select several ring items?

Thanks, Alexander.


0 Kudos
Message 1 of 12
(3,785 Views)
Hi Alexander,

1. Yes. When you can disable it, then you can enable it too...
2. No. Only one selected item...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 12
(3,781 Views)
Hi Alexander
 
On your block diagram you can create a property node for the diabled nature of your ring control. If you change this node to write and then input an integer array with the elements that you want to disable then you can programaticaly control what is disabled and what isn't.
 
If your not sure about how to do this then tell me and I will write a short sample code for you.
 
best regards
Graham Green
Software Product Marketing
NI | Emerson
Message 3 of 12
(3,771 Views)


Alron wrote:
Hi,
2. Can I programmatically select several ring items?


If you still want to programatically select several ring items, code in its mouse down event such that on every selection you update the ring's text.text to a string array, so that you can get a list of selected items when the user has finished the operation.
- Partha ( CLD until Oct 2027 🙂 )
Message 4 of 12
(3,745 Views)
But how keep several items selection colored (marked) ?

"parthabe" <x@no.email> wrote in message
news:1207224606482-682793@exchange.ni.com...
> Alron wrote:Hi,2. Can I programmatically select several ring items?
>
>
> If you still want to programatically select several ring items, code in
> its mouse down event such that on every selection you update the ring's
> text.text to a string array, so that you can get a list of selected items
> when the user has finished the operation.


0 Kudos
Message 5 of 12
(3,734 Views)
Hi,
I have tried with a property node, but could only desable an item, so any
example (Labview 8.0) will be appreciable.
Thanks, Alexander.

"GrahamG" <x@no.email> wrote in message
news:1207215608201-682719@exchange.ni.com...
> Hi Alexander
> &nbsp;
> On your block diagram you can create a property node for the diabled
> nature of your ring control. If you change this node to write and then
> input an integer array with the elements that you want to disable then you
> can programaticaly control what is disabled and what isn't.
> &nbsp;
> If your not sure about how to do this then tell me and I will write a
> short sample code for you.
> &nbsp;
> best regards


0 Kudos
Message 6 of 12
(3,734 Views)
Perhaps you should consider using a Listbox instead. This will allow you to easily select multiple items without doing a lot of dancing around with code.
0 Kudos
Message 7 of 12
(3,717 Views)


Alron wrote:
I have tried with a property node, but could only desable an item, so any
example (Labview 8.0) will be appreciable.

You would use the "disabledItems[]" property and give it an array of indices. To enable all, wire an empty array.


 



Message Edited by altenbach on 04-03-2008 08:42 AM
0 Kudos
Message 8 of 12
(3,713 Views)


Alron wrote:
But how keep several items selection colored (marked) ?

You should consider using a listbox instead so as to color several items.
But that too will not enable you to change the color of each item to be different. It ll inherit the OS settings.
- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 9 of 12
(3,684 Views)
I don't think the user isn't trying to use different colors for each selected item. They just want to be able to select multiple items and is using the term "colored" to indicate they're selected.
0 Kudos
Message 10 of 12
(3,660 Views)