Hi,
This is the 2.0 version of my one-line inputbox routine for PlayBasic.
Usage:
inputtext$=inputbox(xpos,ypos,width,height,textcolor)
inputtext$ = the text you wish to edit, or can be empty
xpos,ypos = the top left corner of the textbox
iw,ih = the width and height of the textboxtextcolor = the color of the text
New in this version:
- The cursor is blinking nicely
- You can now select text with SHIFT + Left / Right!
- Copy / paste to/from Windows clipboard with CTRL+C / CTRL+V !
- In this version the other routines of the program don't halt while we edit the text. You can draw background, move sprites or anything, AND check the entered text in every frame, or deliberately finish the editing at any time.