キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

scrollbar programming

解決済み
解決策を見る
An array is having vertical scroolbar. I using more than two arrays where each will be having individual scrollbar. I want to use a common scrollbar for all the arrays where if I move the slide on the scrollbar the elements in all the arrays should move up or down depending on the scrollbar move.
0 件の賞賛
メッセージ1/12
4,859件の閲覧回数

Hi,

           Could you please attach your VI so that i can help you in a better way.

0 件の賞賛
メッセージ2/12
4,852件の閲覧回数

Hello... 🙂

 

So you want to synchronize all scroll bars...? Is it so...?

 

Can you please explain in detail or post your code....?

0 件の賞賛
メッセージ3/12
4,849件の閲覧回数

Well, if all arrays should always scroll together, you might want to display your data in a 2D array or in a table instead. Would make more sense. 🙂

 

If you want to scroll all your 1D arrays with an external scrollbar, just place a naked scrollbar and use a "value change" event to update the "indexvals" preorty of all the arrays, for example as in the attached image.

 

Message Edited by altenbach on 10-07-2008 12:24 AM
0 件の賞賛
メッセージ4/12
4,842件の閲覧回数
解決策
受理者 Rajashekar

Hi,

 

Make the scroll bar visible only for a single array and make all other array scroll bar as invisible. Then use the property node "Index Values"  of the visible scroll bar array to set to all other array Index Values.

 

Hope it helps you..

 

Regards,

 

Raja

メッセージ5/12
4,841件の閲覧回数
Create property nodes for the arrays and use the Index Values property.

___________________
Try to take over the world!
0 件の賞賛
メッセージ6/12
4,838件の閲覧回数

Thanks for the help, I tried the logic in my program its working, I need one more information what is the max size of array?

 

Regards

Rajashekar

0 件の賞賛
メッセージ7/12
4,804件の閲覧回数
Are 2,147,483,647 elements enough? You'll run out of memory on most systems before you get to an array that large, anyway, so it doesn't really matter.

___________________
Try to take over the world!
0 件の賞賛
メッセージ8/12
4,791件の閲覧回数

I need 6,00,000 locations in an array to store 32 bit data in each location. Is it possible?

 

Regards,

Rajashekar 

 

0 件の賞賛
メッセージ9/12
4,771件の閲覧回数

6,000,000 multiplied by 4 bytes comes out to ~24 MB. That's not a problem, as long as you don't make too many data copies.


___________________
Try to take over the world!
0 件の賞賛
メッセージ10/12
4,769件の閲覧回数