EXAMPLE SOURCE CODES


     This is a small collection of mostly game example source codes. These source codes are made available to help PlayBasic programmers kick start their game programming journey. Looking for more source code / tutorials & media, then remember to visit the PlayBasic Resource board on our forums.

Found #2 items in Input category by Adaz

 Inputbox 2.0 for PlayBasic

By: Adaz Added: December 2nd, 2006

Category: All,Input


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.


Download: Login to Download




 Inputbox for PlayBasic

By: Adaz Added: November 16th, 2006

Category: All,Input


Hi,

At least this is a one-line inputbox PSUB with scrolling and editing feature.

It's the first version, but fully functional.

It took 1 hour to write but can be improved though


Download: Login to Download




Viewing Page [1] of [1]



Want More Source Codes?:



Release Type: The source code & tutorials found on this site are released as license ware for PlayBasic Users. No Person or Company may redistribute any file (tutorial / source code or media files) from this site, without explicit written permission.

 

 
     
 
       

(c) Copyright 2002 / 2024 Kevin Picone , UnderwareDesign.com  - Privacy Policy   Site: V0.99a [Alpha]