Anyone did a better InputRequester module or include?
Posted: Mon Jun 16, 2025 9:36 am
Hi,
for a quick project I need a simple input requester that allows wordwrapped multiline message on top of the input field. It needs to adapt the height automatically to fit to the message text. I thought this is nothing special and a no-brainer, but the existing InputRequester is not capable of doing that.
I first searched this forum but found no ready to use solution.
I then wanted to create my own but there is no TextGadget that does wordwrap and automatic height at all. Therefore, the only solution I see is using drawing functions and doing my own wordwrap function using TextWidth() and TextHeight() functions. Then using this to draw my message to a canvas (aliasing!) and then use that in the dialog. I can't believe it is that hard in 2025
The dialog library also seem to not provide some auto sizing and wordwrap for the TextGadget. Or did I miss something?
Is there anyone who already did an include or module for this and is willing to share? Need it for Windows only.
for a quick project I need a simple input requester that allows wordwrapped multiline message on top of the input field. It needs to adapt the height automatically to fit to the message text. I thought this is nothing special and a no-brainer, but the existing InputRequester is not capable of doing that.
I first searched this forum but found no ready to use solution.
I then wanted to create my own but there is no TextGadget that does wordwrap and automatic height at all. Therefore, the only solution I see is using drawing functions and doing my own wordwrap function using TextWidth() and TextHeight() functions. Then using this to draw my message to a canvas (aliasing!) and then use that in the dialog. I can't believe it is that hard in 2025

The dialog library also seem to not provide some auto sizing and wordwrap for the TextGadget. Or did I miss something?
Is there anyone who already did an include or module for this and is willing to share? Need it for Windows only.