Qbasicnews.com

Full Version: Field Layout
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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? :???:
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?
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.
^ What she said... [Image: biggrin.gif]
Yo Deathscythe... did you know that text color BURNS THE RETINAS? Just thought you'd like to know. Duo forever.
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...)
*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.
Really GREAT.