Home AMX User Forum NetLinx Studio

Need help : ListBox management.

Hi all,
I'd like to use a ListBox control, but I need some helps.
List box buttons can be used to allow the end-user to view data in list form, and make selections from the list.
How can I make a selection if I cannot bind any Push Event routine to any subordinate list box button?
It's possible to catch a "Push" event using a list box?
There are some code examples useful to see?
Any suggestion will be well appreciated.
Thanks in advance for your suggestions.
Nicola Dicosmo.

Comments

  • The way to do this is by assigning channel codes to list box data items. In TPD4, this is done by setting the column type to "Channel Code" in the "Type" drop down list in the "Add List Table Column" box (accessed via Panel->Edit List Tables). The format for the value is port,channel. If you are creating your data list dynamically (i.e. via send commands), you would specify the column type via the ^LDT command, then add each item with the ^LDA command. There is an example of this in TPD4 Help (look for "Dynamic List Box Table Example"). One thing to remember is that if you plan to take the dynamic approach and you will be adding ports and/or channels for list box items, be sure to specify the port/channel allocation (in TPD4 under File->Project Properties) rather than allowing them to be calculated automatically. Good luck.
  • AuserAuser Posts: 506
    And make sure that your target panel supports list boxes as not all do (in fact most don't unless that's changed in recent firmware releases). The TPD4 2.11.619 (current version) help file lists only the R4 remote as supporting list boxes.

    I still don't understand why you can draw list box buttons on panel designs if the panel type you are working with doesn't support list boxes. I wasted hours trying to get them working before realising that only R4 remotes support them.[/rant]
  • Auser wrote: »
    And make sure that your target panel supports list boxes as not all do (in fact most don't unless that's changed in recent firmware releases). The TPD4 2.11.619 (current version) help file lists only the R4 remote as supporting list boxes.

    I still don't understand why you can draw list box buttons on panel designs if the panel type you are working with doesn't support list boxes. I wasted hours trying to get them working before realising that only R4 remotes support them.[/rant]


    I just drew one on an NXT-CV10, pretty sure there are not supported on the device firmware... something to play with this afternoon.
Sign In or Register to comment.