InputRequester() - Cancel, Auto-Width etc.
Posted: Mon Nov 02, 2015 8:40 pm
Important missing features to enhance the current InputReqester():
- #PB_MessageRequester_Cancel flag: Adds a cancel button (or simply a window close button if it's custom-made and the translation of "cancel" is problematic). If used it returns a special value like #PB_Default$="###-1###" or an empty string.
- Adjust window's width automatically: If the description text is too long it gets cut off. Now that we (and you) have GadgetWidth(#GADGET,#PB_Gadget_RequiredSize) it could be fixed pretty easily.
- Multi-line description: I like the idea of using "first"+#LF$+"second line" for the requester's description text.
- Textual cue: A new flag converts the DefaultString$ into a textual cue (info text like e.g. "type here to search"). On Windows it's done with EM_SETCUEBANNER and Linux/Mac probably have something similar. (By the way I'm missing this for the actual StringGadget() too!)