Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / [DBP] Input Positioning Made Easy (Beta)

Author
Message
Zeus
18
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 25th Jan 2008 03:09
Well I realised that the entry$() command could be made a little simpler to fellow newbies. So I made a thing to position input.
NOTE: This is a BETA for a function pack I plan to release called AthenaBASIC for DBP.

How it works,
X and Y is your axis to position your input.

The mess$ parameter is a string for your input message. i.e.("Name?")

Typer is like the little line that appears after you type a letter. So, it could be that little line or anything you want it to be.

Garuntee (sp$):
This code works without any bugs what so ever.


Function:


Example:




Formerely Cool Guy Jordan
Dabbler
17
Years of Service
User Offline
Joined: 3rd Mar 2007
Location: Minnesota
Posted: 25th Jan 2008 04:01 Edited at: 25th Jan 2008 04:27
You have much to learn.

Indentation comes to mind.


Whatever...
Zeus
18
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 25th Jan 2008 15:06 Edited at: 25th Jan 2008 15:07
[edit]


Formerely Cool Guy Jordan
AndrewT
17
Years of Service
User Offline
Joined: 11th Feb 2007
Location: MI, USA
Posted: 25th Jan 2008 21:08
Why have you made it so that the user must press the escapeKey to continue?? Seems like 'Enter' would have been a better choice...

And you don't even have a return value, so you can't actually use the input data for anything.
Zeus
18
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 26th Jan 2008 01:53
Lol. That is why I put Beta... But seriously, I am improving it.


Formerely Cool Guy Jordan
Roxas
19
Years of Service
User Offline
Joined: 11th Nov 2005
Location: http://forum.thegamecreators.com
Posted: 26th Jan 2008 03:59
Nah.. Title is misleading.. I tought someone did same kind of system that WinApi uses.. (Click a letter with mouse and the cursors goes there.. )


Click For Details!

Login to post a reply

Server time is: 2024-11-22 13:28:52
Your offset time is: 2024-11-22 13:28:52