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 / Need Help

Author
Message
Teckno
21
Years of Service
User Offline
Joined: 20th Jan 2004
Location: Inside of your computer, LET ME OUT!!!!!
Posted: 7th Feb 2004 08:36
im woring on a 2d program in DB classic, I already got a bitmap in the background. but I need to place a couple of text feilds where the user can enter text and have that text be saved in a variable, how do i do this ontop of the background

I am god, now bow before me you stupid peasants
I accept no responsibility for any thing I say while... well..... ever
The Dream Keeper!
21
Years of Service
User Offline
Joined: 9th Oct 2003
Location: Netherlands! HOLLAND!
Posted: 7th Feb 2004 17:47 Edited at: 7th Feb 2004 17:47
example:



That should work.

Hope i've helped,

The Dream Keeper!

Bring fun to life!!!!!
Teckno
21
Years of Service
User Offline
Joined: 20th Jan 2004
Location: Inside of your computer, LET ME OUT!!!!!
Posted: 7th Feb 2004 18:54 Edited at: 9th Feb 2004 00:42
I already got the background thingy, but i need the text field so the user can enter text

like a black box with nothing in it and the user can type in whatever they want and it is saved in a string variable. just like with the input command but at a certain place and ontop of the image. and without stoping the program like what input does

I am god, now bow before me you stupid peasants
I accept no responsibility for any thing I say while... well..... ever
Teckno
21
Years of Service
User Offline
Joined: 20th Jan 2004
Location: Inside of your computer, LET ME OUT!!!!!
Posted: 8th Feb 2004 07:01
there must be some way of doing it

I am god, now bow before me you stupid peasants
I accept no responsibility for any thing I say while... well..... ever
Crappy Coder
21
Years of Service
User Offline
Joined: 16th Sep 2003
Location: Uk, Bath
Posted: 9th Feb 2004 01:59
check the topic on a caret thingy, its near the top of the page, i have posted an input command that will allow the user to input text, unlike the db one it doesn't freeze everything everything else
Teckno
21
Years of Service
User Offline
Joined: 20th Jan 2004
Location: Inside of your computer, LET ME OUT!!!!!
Posted: 9th Feb 2004 07:40
THANK YOU SO MUCH!!!!!!!!!!

Im now in the process of tweaking (more like riping it apart) to work with my program, but its working great.

Thank you Thank you Thank you Thank you Thank you Thank you

I am god, now bow before me you stupid peasants
I accept no responsibility for any thing I say while... well..... ever
Crappy Coder
21
Years of Service
User Offline
Joined: 16th Sep 2003
Location: Uk, Bath
Posted: 9th Feb 2004 12:54
hehe no problem, gald i could help
Teckno
21
Years of Service
User Offline
Joined: 20th Jan 2004
Location: Inside of your computer, LET ME OUT!!!!!
Posted: 9th Feb 2004 20:57
once again i hit a titanium reinforced brick wall

im haveing troble with the code, I am trying to make it so I have multible feilds where the user can enter data (mostly strings) and you select the feild by clicking on them just like in any windows app, or like the box im typeing in now in the forum. the data in each feild needs to be in its own varible ofcorse. however the problem is the text wont show unless i hold down the mouse button, and the information is being stored in the same varible.

heres my code (i took out the non-related stuff to avoid confusion):


If you want to see the entire code, just ask

I am god, now bow before me you stupid peasants
I accept no responsibility for any thing I say while... well..... ever
Crappy Coder
21
Years of Service
User Offline
Joined: 16th Sep 2003
Location: Uk, Bath
Posted: 9th Feb 2004 22:03



i just whipped this up quickly, not sure if its what you want... i couldnt get your code to work in darkedit, it just crashed or did nothing, anyways hope this helps
Teckno
21
Years of Service
User Offline
Joined: 20th Jan 2004
Location: Inside of your computer, LET ME OUT!!!!!
Posted: 10th Feb 2004 07:00
that is exactly what im looking for, Thank you so much.

if you were not on the other side of the world I would kiss you,

I am god, now bow before me you stupid peasants
I accept no responsibility for any thing I say while... well..... ever
Crappy Coder
21
Years of Service
User Offline
Joined: 16th Sep 2003
Location: Uk, Bath
Posted: 10th Feb 2004 12:36
hehe glad you liked it, good luck with your project

Login to post a reply

Server time is: 2025-05-22 18:37:39
Your offset time is: 2025-05-22 18:37:39