Welcome to %s forums

BrainModular Users Forum

Login Register

listboxstring

Create your own modules in C++
Post Reply
User avatar
oli_lab
Member
Posts: 1261
Location: Brittany, France
Contact:

Unread post by oli_lab » 05 Nov 2016, 00:10

Hi !

is someone can help me with the correct synthax to display proper list names in the list box ?

I did this :

pParamInfo->ParamType = ptListBox;
pParamInfo->Caption = "wave type";
pParamInfo->ListBoxStrings = "W1", "W2", "W3", "W4", "W5", "W6", "W7","W8"";

and I got that when using the module :

W1"
"W2"
"W3"
"W4"
"W5"
"W6"
"W7"
W8

that is weird.

thanks for your help

Olivar
http://oli-lab.org

Win11 Ryzen9/32GB RAM - RME MADIFACE - SSL alpha link 4-16 - OSC capable interfaces

follow OLI_LAB adventures on Mastodon
@olivar_premier@mastodon.social

User avatar
oli_lab
Member
Posts: 1261
Location: Brittany, France
Contact:

Unread post by oli_lab » 05 Nov 2016, 01:02

this one was easy :

pParamInfo->ListBoxStrings = "W1,W2,W3,W4,W5,W6,W7,W8";

but if there is any "space" like "W1, W2... you'll get an process error.
http://oli-lab.org

Win11 Ryzen9/32GB RAM - RME MADIFACE - SSL alpha link 4-16 - OSC capable interfaces

follow OLI_LAB adventures on Mastodon
@olivar_premier@mastodon.social

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 08 Nov 2016, 18:44

maybe you sorted that out since but here i tried:

pParamInfo->ListBoxStrings = "A a,B, C,D " ;

and i don't get process error when tracing and the listboxstrings are correctly displayed with spaces on the module, ..strange

User avatar
oli_lab
Member
Posts: 1261
Location: Brittany, France
Contact:

Unread post by oli_lab » 08 Nov 2016, 19:57

My module is copy intolerant.
Don't know why yet.
http://oli-lab.org

Win11 Ryzen9/32GB RAM - RME MADIFACE - SSL alpha link 4-16 - OSC capable interfaces

follow OLI_LAB adventures on Mastodon
@olivar_premier@mastodon.social

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests