cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

list box with multiple selection

jmit
1-Newbie

list box with multiple selection

Hi folks,

I lookig for a list box component or something similar for which I can make multiple selections in one shot (for instance, by presing the ctrl button as in excel).

Thanks a lot for your help

Best Regards,

-JM

9 REPLIES 9
ValeryOchkov
24-Ruby IV
(To:jmit)

May be so:

http://twt.mpei.ac.ru/ochkov/Mathcad_12/7_20_List.png

RichardJ
19-Tanzanite
(To:jmit)

There is a multiselect list box here:

Extra Components.mcd

Search for "Dynamically filled list boxes"

jmit
1-Newbie
(To:jmit)

Thx for your answer Richard.

Does it work out properly for you?

For me, component not really reliable.

Also, do you know a way to change the size of the box?

Auto-adjustment ?

thx anyway

-jm

RichardJ
19-Tanzanite
(To:jmit)

Does it work out properly for you?

For me, component not really reliable.

In what way?

Also, do you know a way to change the size of the box?

Auto-adjustment ?

I can add seom inputs so that you can easily change the height and width. Autosizing is not available though.

jmit
1-Newbie
(To:jmit)

1) By reliable, I meant that if I press left click + crtl once on the first item, the third and finally the fifth, it will select everything or unselect my initial selection.

++> Same observation with other scenarii.

2) I tried to add arguments like MSlistbox.Height = 11 etc... at the beginning of the script but seems not working!!

Thx for your help on both items

JM

RichardJ
19-Tanzanite
(To:jmit)

1) By reliable, I meant that if I press left click + crtl once on the first item, the third and finally the fifth, it will select everything or unselect my initial selection.

++> Same observation with other scenarii.

Hmmm. Works fine for me. If I select 1, 3, and 5 then that's what I see in the output vector. Which OS are you using?

jmit
1-Newbie
(To:RichardJ)

Not something fancy ... just XP!

May I ask you to help me to resize the listbox, please?

Thx Richard for your valuable support

Best regards,

-JM

RichardJ
19-Tanzanite
(To:jmit)

May I ask you to help me to resize the listbox, please?

Well, when I tried I can't get anything to work. The ListWidth and ColumnWidths properties will not do it. If I increase them I just get a horizontal scrollbar

You can get a resizing box, but it's painful. Left click the mouse repeatedly on the bottom edge of the box, just above "ListBoxOptions". If you do that enough, while moving the mouse slightly, the resizing box should eventually appear.

jmit
1-Newbie
(To:RichardJ)

Not fully understand why this cannot be scripted!

Should be supported by VBA right!!!

I really like Mathcad but sometimes is a pain (especially scripting components)!

-JM

Top Tags