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 Professional Discussion / Center text and input

Author
Message
Ashir
18
Years of Service
User Offline
Joined: 3rd Sep 2006
Location: Caracas, Venezuela
Posted: 18th Dec 2014 04:30
Hi guys:

I need to center the text the user writes on the screen, like CENTER TEXT and INPUT. It's for a profile creation screen

I found this post and that is exactly what I need.

The answer of Alsan works, but I have a previous line of text that says "Profile", and I want to keep it.

Is there a way to achieve the same without the CLS?

Thanks.
WickedX
16
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 18th Dec 2014 05:05
There has to be some method of clearing the screen or the text. You can clear the screen with CLS or by using sync with the backdrop. You can just clear the previous text with this -

Ashir
18
Years of Service
User Offline
Joined: 3rd Sep 2006
Location: Caracas, Venezuela
Posted: 18th Dec 2014 05:49
Thank you WickedX. Your code point me in the right direction.

Login to post a reply

Server time is: 2025-05-15 17:36:52
Your offset time is: 2025-05-15 17:36:52