InputRequester() Message$ -> Auto width & multiple lines

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
c4s
Addict
Addict
Posts: 1981
Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany

InputRequester() Message$ -> Auto width & multiple lines

Post by c4s »

Please add the features from the MessageRequester(): Support for multiple lines (like "Hello!" + #CRLF$ + "Please enter something") and even more important: Automatic width adjustment of the window.

Sure I can make my own InputRequester() but then the build-in function is kinda useless because text is often cut on the right and multiple lines could be pretty important too.
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
Env
Enthusiast
Enthusiast
Posts: 151
Joined: Tue Apr 27, 2010 3:20 pm
Location: Wales, United Kingdom

Re: InputRequester() Message$ -> Auto width & multiple lines

Post by Env »

The Input Requester (as well as the message, open and save file requesters) rely on the Windows (or Linux/MacOS) standard libraries, which means they are not created inside Purebasic, so I doubt it would be possible... Unless the developers of PureBasic implement a custom dialog factory.



Env
Thanks!
c4s
Addict
Addict
Posts: 1981
Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany

Re: InputRequester() Message$ -> Auto width & multiple lines

Post by c4s »

No, as far as I know MessageRequester(), FileRequester() and so on are "wrapped" and InputRequester() is custom. So it should be possible.
I just think the InputRequester() is a bit useless in the current state if we have to code a correct working one anyway.
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Re: InputRequester() Message$ -> Auto width & multiple lines

Post by netmaestro »

I'd like to see a #PB_Input_Password flag for it, same as for a string gadget.
BERESHEIT
jamba
Enthusiast
Enthusiast
Posts: 144
Joined: Fri Jan 15, 2010 2:03 pm
Location: Triad, NC
Contact:

Re: InputRequester() Message$ -> Auto width & multiple lines

Post by jamba »

netmaestro wrote:I'd like to see a #PB_Input_Password flag for it, same as for a string gadget.
I second this!
-Jon

Fedora user
But I work with Win7
c4s
Addict
Addict
Posts: 1981
Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany

Re: InputRequester() Message$ -> Auto width & multiple lines

Post by c4s »

Support for #PB_MessageRequester_Cancel would be great as well! It would just add an "Abort" button and return no text when it is pressed instead of "OK".
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
User avatar
djes
Addict
Addict
Posts: 1806
Joined: Sat Feb 19, 2005 2:46 pm
Location: Pas-de-Calais, France

Re: InputRequester() Message$ -> Auto width & multiple lines

Post by djes »

Yeah, a cancel or close button would be a must, as in the snippet by Joakim Christiansen : http://www.purebasic.fr/english/viewtop ... =3&t=19998
Post Reply