Posts: 13
Threads: 5
Joined: May 2003
I was wondering if anyone knew of a way to create text fields that could be used to enter data. I am creating a D&D program that helps to keep track of player stats and other characters. I'm working on the character creation portion of the program and need an organized look to it and make it simple for the user to use. Any ideas? :???:
I am the Great Destroyer"
-Duo Maxwell 'Gundam Wing'
Posts: 720
Threads: 46
Joined: Oct 2001
There's no easy or fast solution. You need to manually track input and have a variable that keeps track of which 'field' the user is on. Pressing TAB increments that and shift-TAB decrements it...
Then you have an array of however many strings there are fields... whichever field the user is on is the one that characters get added to when the person types something. Not sure if that makes any sense, but that's what you need to do. Have you ever made a custom 'getstring' procedure before?
Posts: 480
Threads: 24
Joined: Mar 2003
I recommend using record data in an array:
Code:
TYPE TextField
XLoc AS INTEGER 'x-coordinate of start of field
YLoc AS INTEGER 'y-coordinate of start of field
CLoc AS INTEGER 'where in the field the cursor is
Txt AS STRING * 20 'what text does the field hold? (set string length)
MLen AS INTEGER 'maximum length of the field
END TYPE
' n = # of fields you are keeping track of
DIM Fields(1 to n) AS TextField
*peace*
Meg.
Posts: 720
Threads: 46
Joined: Oct 2001
^ What she said...
Posts: 1,166
Threads: 62
Joined: Apr 2003
Yo Deathscythe... did you know that text color BURNS THE RETINAS? Just thought you'd like to know. Duo forever.
am an asshole. Get used to it.
Posts: 720
Threads: 46
Joined: Oct 2001
Quote:Yo Deathscythe... did you know that text color BURNS THE RETINAS? Just thought you'd like to know. Duo forever.
Yeah, I think we need someone to mod that first post. Kick in the clutch, Wilcard!11!!1!!
(Sorry, had a little AOL moment there...)
Posts: 749
Threads: 4
Joined: Jun 2002
*cough*
Heh, that brings some memories...
IRON EUNUCH WILL USING MOBILE SUIT GUNDAM "Death Scythe" TO DEFEATS EVIL MECHA HAT MAN IN MOBILE SUIT "Tall Geese" FOR GREAT JUSTICE.
I -love- that description for the SNES Gundam game.
img]http://usuarios.vtr.net/~disaster/sigs/annoyizer.php[/img]
Posts: 6,419
Threads: 74
Joined: Mar 2002