取消
显示结果 
搜索替代 
您的意思是: 

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,349 次查看

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,342 次查看
解答
已被主题作者 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,341 次查看

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,336 次查看

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

0 项奖励
5 条消息(共 6 条)
3,332 次查看

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

0 项奖励
6 条消息(共 6 条)
3,329 次查看