Home AMX User Forum AMX Technical Discussion

List Box

Hi guys,
I've read "Dynamic List Box Table Example" from help of TP4, and I've done some practice following this tutorial.
But I've the following doubts:
1) what means the statement:
send_command Keypad,"^LVC-2,4"
the comment says:
//Sets the column number (4) to display in the view with address 2
so, what is the "view"?
2) How can I select or emphasize a single row of a List Box widget?
3) I know that the list box doesn't give feedback, but if I set column type as "channel", can I have some kind of event wich can be managed by an handler?
Thanks in advance for your tips
Regards
Nicola Dicosmo
p.s.

I past there the tutorial:

DEFINE_DEVICE

Keypad = 11001:1:4
Keypad2 = 11001:2:4
KeypadMusic = 11001:10:4

DEFINE_EVENT
BUTTON_EVENT[Keypad,5]
{
PUSH:
{
//Deletes any existing data list at address 1
SEND_COMMAND Keypad, "'^LDD-1'"

//Creates new 5-column data list at port 1, address 1 named "my music"
SEND_COMMAND Keypad, "'^LDN-1,1,5,my music'"

//Specifies column types for the data list at address 1 starting at column 1
SEND_COMMAND Keypad, "'^LDT-1,1,0,0,0,0,3'"

//Adds rows to the data list at address 1
SEND_COMMAND Keypad, "'^LDA-1,0,01,The Shins, Chutes Too Narrow, Kissing the Lipless, "10,1"'"
SEND_COMMAND Keypad, "'^LDA-1,0,02,The Shins, Chutes Too Narrow, "Mine''s Not a High Horse", "10,2"'"
SEND_COMMAND Keypad, "'^LDA-1,0,03,The Shins, Chutes Too Narrow, So Says I, "10,3"'"
SEND_COMMAND Keypad, "'^LDA-1,0,04,The Shins, Chutes Too Narrow, Young Pilgrim, "10,4"'"
SEND_COMMAND Keypad, "'^LDA-1,0,05,The Shins, Chutes Too Narrow, Saint Simon, "10,5"'"
SEND_COMMAND Keypad, "'^LDA-1,0,06,The Shins, Chutes Too Narrow, Fighting in a Sack, "10,6"'"
SEND_COMMAND Keypad, "'^LDA-1,0,07,The Shins, Chutes Too Narrow, Pink Bullets, "10,7"'"
SEND_COMMAND Keypad, "'^LDA-1,0,08,The Shins, Chutes Too Narrow, Turn a Square, "10,8"'"
SEND_COMMAND Keypad, "'^LDA-1,0,09,The Shins, Chutes Too Narrow, Gone for Good, "10,9"'"
SEND_COMMAND Keypad, "'^LDA-1,0,10,The Shins, Chutes Too Narrow, Those to Come, "10,10"'"

//Sets the column number (4) to display in the view with address 2
SEND_COMMAND Keypad, "'^LVC-2,4'"

//Updates the view at address 2
SEND_COMMAND Keypad, "'^LVU-2'"
}

...
Sign In or Register to comment.