Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Radio Buttons are always Vertical #83

Open
Pack-Blepper opened this issue Jan 28, 2024 · 4 comments
Open

Radio Buttons are always Vertical #83

Pack-Blepper opened this issue Jan 28, 2024 · 4 comments

Comments

@Pack-Blepper
Copy link

Horizontal sliders with radio button style are not made horizontal.

@sletz
Copy link
Member

sletz commented Jan 28, 2024

Can you send and example ?

@Fr0stbyteR
Copy link
Contributor

Do we have "horizontal" radio buttons on other platforms @sletz?

@sletz
Copy link
Member

sletz commented Jan 28, 2024

@Pack-Blepper a piece of DSP code would help...

@Pack-Blepper
Copy link
Author

Pack-Blepper commented Jan 28, 2024

The documentation says:

The [style:radio] metadata turns a hslider or a vslider into a radio-button-menu. The orientation of the menu is determined by the type of UI element (i.e., hslider for horizontal and vslider for vertical).

In a program like below, the UI looks the same whether the delay slider is vertical or horizontal.

process = 
    @(hslider("delay[style:radio{'one':1;'two':2;'three':3}]",1,1,3,1))
    : *(hslider("gain",0,0,1,0.01));

P.S. I just noticed that while a syntax error in the metadata outside the curly braces makes the menu revert to a slider, an error inside the curly braces (e.g. [style:radio{'one':1;'two':2;'three':e}]) instead creates a menu with no buttons.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants