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

Controlling array of indicator clusters

解決済み
解決策を見る

Problem:

There is an array of clusters which indicate the various equipment detected on the serial bus by make, model, and serial number.  The goal is to provide a comprehensive list to the user and allow them to select individual devices to perform several different opperations, such as remove from list and verify all, which are being handled in a mouse down, or value change event structure.  How do I keep a control, like a select button, linked up to the respective cluster element in the array?

 

 

0 件の賞賛
メッセージ1/6
3,350件の閲覧回数

Buttons are no fun in arrays for the user events.

 

You will lose the ability to use latch when releaed, and instead the best you can do is detect a value change for the entire array, then test to see which one was pressed.  At that point you'll need to set the value of the button back to false.  This will give you a mechanical option of latch when pressed.

 

I've done this, but I'm never happy with the mechanical boolean operation of buttons in the array, nor do I like the increased complexity detecting the button press.

------------------------------------
Jon Kokott
CLA, CLED, CTD, MCP C#
0 件の賞賛
メッセージ2/6
3,343件の閲覧回数
解決策
受理者 EnterUserName

If you don't put the button inside the array, you can calculate the array position using a property node with property IndexVals.

------------------------------------
Jon Kokott
CLA, CLED, CTD, MCP C#
メッセージ3/6
3,342件の閲覧回数

Does sound a bit problematic.

If a nice user interface is required try parsing and representing the cluster in a multicolumn listbox and having a right click menu, or buttons which act upon the selected row.

メッセージ4/6
3,337件の閲覧回数

This sounds do-able.  I'll have to play with this scenario.  Thanks

0 件の賞賛
メッセージ5/6
3,333件の閲覧回数

Never used a listbox before but this also sounds like something worth trying. Thanks

0 件の賞賛
メッセージ6/6
3,330件の閲覧回数