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.

DarkBASIC Discussion / Positioning INPUT

Author
Message
timthepig
21
Years of Service
User Offline
Joined: 27th Feb 2005
Location:
Posted: 28th Feb 2005 00:11
How do you position the INPUT command???

I assigned a text string to the input command, and tried to position using (text x,y, $textstring) - but this does not position the text still.

text xtestpos,ytextpos-500, $test
input $test;name$

As the above - I need to position the input - but this code does not perform this. How can I manipulate the input to appear at position (x,y).

It seems so simple but I couldn't find anything in the documentation to help me. I know this is a simple one!!!
Benjamin
23
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 28th Feb 2005 02:12
SET CURSOR x,y


"Lets migrate like bricks" - Me
timthepig
21
Years of Service
User Offline
Joined: 27th Feb 2005
Location:
Posted: 28th Feb 2005 02:14
I've solved this one myself. It seems the documentation isn't all that clear in my opinion.

Though you can position the string\text - the INPUT command uses the CURSOR position - and this includes the specified string.

so I used

SET CURSOR X,Y

Which was confusing because the co-ordinates used for position text(TEXT X,Y, string) and cursors(SET CURSOR X,Y) are entirely different!!!!! arrrgh!

I'm assuming this is the best solution?
timthepig
21
Years of Service
User Offline
Joined: 27th Feb 2005
Location:
Posted: 28th Feb 2005 03:14
Looks like you posted just when I did. Cheers anyway.

Login to post a reply

Server time is: 2026-07-11 17:26:42
Your offset time is: 2026-07-11 17:26:42