Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Feature Requests

Reply
 
Thread Tools Display Modes
Old 05-08-2019, 01:05 PM   #1
juliansader
Human being with feelings
 
Join Date: Jul 2009
Posts: 3,714
Default ReaScript: GetUserInputs: automatically adjust width to fit longer captions

The space for captions in the GetUserInputs window is quite narrow, so captions can often not include helpful tips.

I therefore suggest that the window width should automatically expand (to some reasonable limit) to fit the caption text.

EDIT: This image shows that whereas the text input field on the right can be made wider by using the extrawidth parameter, the *captions* area on the left is narrow and of fixed width:

Last edited by juliansader; 05-09-2019 at 12:12 PM.
juliansader is offline   Reply With Quote
Old 05-08-2019, 02:51 PM   #2
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,900
Default

Yeeeeees !
X-Raym is offline   Reply With Quote
Old 05-08-2019, 02:58 PM   #3
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 4,964
Default

Quote:
Originally Posted by ReaScript documentation
To increase text field width, add an extra caption field, and specify extrawidth=xyz
(but yeah automatic adjustment would be nice)
cfillion is offline   Reply With Quote
Old 05-08-2019, 03:50 PM   #4
juliansader
Human being with feelings
 
Join Date: Jul 2009
Posts: 3,714
Default

AFAIK the extrawidth parameter only affects the text input field, and I am referring to the captions area on the left. (I added an image above to make my request clearer.)
juliansader is offline   Reply With Quote
Old 05-08-2019, 03:59 PM   #5
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 4,964
Default

Ah, right. My bad!
cfillion is offline   Reply With Quote
Old 05-09-2019, 02:28 AM   #6
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,629
Default

Will add that to my Ultraschall-API. Just hadn't time to do it yet.

Otherwise: +1
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is offline   Reply With Quote
Old 05-09-2019, 12:09 PM   #7
juliansader
Human being with feelings
 
Join Date: Jul 2009
Posts: 3,714
Default

Quote:
Originally Posted by mespotine View Post
Will add that to my Ultraschall-API. Just hadn't time to do it yet.
Are you referring to caption width, or text input width?
juliansader is offline   Reply With Quote
Old 05-10-2019, 05:39 AM   #8
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,629
Default

Caption Width. Text input width is already in there(though I can improve on that even further).

I also think about doing "linebreaks", where you don't have

Caption - TextInputField

but rather

Caption
TextInputField

so the Caption has more space in general, without limiting the length of the TextInputField, but this needs more rethinking on my side to make it easy to use.

BTW: Thanks to your extension, I could solve the csv-problem with GetUserInputs.
The problem is that you can't input commas into multiple textfields, as the returned string doesn't separated between commas input by the user and commas who separate the input of the multiple textfields.
With you awesome extension, I found a way around that
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is offline   Reply With Quote
Old 05-10-2019, 02:43 PM   #9
lb0
Human being with feelings
 
Join Date: Apr 2014
Posts: 4,175
Default

Quote:
Originally Posted by mespotine View Post
Caption Width. Text input width is already in there(though I can improve on that even further).

I also think about doing "linebreaks", where you don't have

Caption - TextInputField

but rather

Caption
TextInputField

so the Caption has more space in general, without limiting the length of the TextInputField, but this needs more rethinking on my side to make it easy to use.

BTW: Thanks to your extension, I could solve the csv-problem with GetUserInputs.
The problem is that you can't input commas into multiple textfields, as the returned string doesn't separated between commas input by the user and commas who separate the input of the multiple textfields.
With you awesome extension, I found a way around that
Intriguing!! Can you make the window prettier?? (on windows) lol.

But seriously - I use two main screens side by side (and a touchscreen underneath) - with reaper spread across the main screens. This really annoyingly means the GetUserInputs dialog appears bang in the middle of the two screens - cut in half by two largish bezels.

If you're able to manipulate the dialog in any way - can it's default location be altered? Considering it steals the focus and stops a script continuing until it is closed - I have no idea how you can adapt it (except maybe in a separate script always running and monitoring for the dialog).
__________________
Projects - Reascripts - Lua:
Smart Knobs 2 | LBX Stripper | LBX Floating FX Positioner
Donate via Paypal | LBX Tools Website
lb0 is online now   Reply With Quote
Old 05-11-2019, 12:39 PM   #10
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,629
Default

Please post this idea into the UltraschallApi-thread, so it doesn't get lost and ends up on my todo-list.

Short answer:yes it's possible and I already have that background-stuff, that's needed for that, implemented for my csv-workaround

Prettier, maybe. If I blit stuff on top of that
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is offline   Reply With Quote
Old 03-09-2021, 07:53 PM   #11
Sonorityscape
Human being with feelings
 
Sonorityscape's Avatar
 
Join Date: Aug 2016
Posts: 91
Default

Any progress on increasing the caption width? I was trying to find out how to do it and came across this thread. I think for now I'll just work around it by placing a more detailed explanation in the answer field.
Sonorityscape is offline   Reply With Quote
Old 03-10-2021, 03:35 AM   #12
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,900
Default

Quote:
I'll just work around it by placing a more detailed explanation in the answer field.
This isnt handy if you use ways to save last inputs


I sometimes just upload doc in the console message,


but sure more room for explaination would be thebest... SOmetimes it is really just an extra line missing.
X-Raym is offline   Reply With Quote
Old 03-10-2021, 08:40 AM   #13
Sonorityscape
Human being with feelings
 
Sonorityscape's Avatar
 
Join Date: Aug 2016
Posts: 91
Default

I realized the user experience was over-complicated anyways, so I simplified it and now everything fits. This makes me think that this limitation is helpful in a way as it forces you to think about how to make your script simple and easy to understand.
Sonorityscape is offline   Reply With Quote
Old 03-10-2021, 02:08 PM   #14
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,629
Default

But sometimes the difference between understandable text and an abbreviated mess is one missing character.

Maybe it would be easier, if the caption would support newlines, so the inputfield would be moved one line down with each newline in the caption(but keeping x-position with all other inputfields).
Newlines are already supported somewhat, but lead to unreadable texts.
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is offline   Reply With Quote
Old 03-11-2021, 06:55 AM   #15
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,900
Default

Quote:
But sometimes the difference between understandable text and an abbreviated mess is one missing character
Yes,
and I dont think that having more flexible width here would be exploited in such abusive ways
It would bring way more help than not.
X-Raym is offline   Reply With Quote
Old 03-17-2021, 03:07 PM   #16
vitalker
Human being with feelings
 
vitalker's Avatar
 
Join Date: Dec 2012
Posts: 13,333
Default

A lack of this feature is so non-Reaper way.
vitalker is online now   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 06:55 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.