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.

Newcomers DBPro Corner / wierd input command

Author
Message
someone namedlink
20
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: Dream Planet
Posted: 14th Aug 2004 07:08
hello,

this time i've got a problem with the input command. it's not a real problem, but I don't like it, so I want it fixed. I can use it properly and the command works perfectly, only when your entering the text, there appear black boxes behind the words and they don't dissapear. And the input goes slow! does someone knows what the problem might be?

DIV/DBP-coder
Kentaree
22
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Clonmel, Ireland
Posted: 14th Aug 2004 07:45
Yes, input uses black as the default background colour, so if there's another colour behind it, it shows. I suggest you take a look into making your own version of the input command using the entry buffer, and this should also speed up the input a bit.

AMD Athlon XP2800+
GeForce FX5200 128MB
1024MB DDR 333MHz RAM
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 14th Aug 2004 07:58
would Ink command help the situation?
Ink foreground color, background color


DBP_NETLIB_v1.4.3 - 65 FREE Functions * Click Logo
Kentaree
22
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Clonmel, Ireland
Posted: 14th Aug 2004 08:01
For the background colour, yes, for the speed, no.

AMD Athlon XP2800+
GeForce FX5200 128MB
1024MB DDR 333MHz RAM
someone namedlink
20
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: Dream Planet
Posted: 14th Aug 2004 08:10
I'm afraid I can't use background color because my background exists of different colors. and what's that entry buffer thing?

DIV/DBP-coder
Kentaree
22
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Clonmel, Ireland
Posted: 14th Aug 2004 08:23
The entry$ command lets you get a string that is currently held by the windows buffer, which hardly misses a key, and so its faster. If you use it along with clear entry buffer, which clears the string (bet you had never guessed), you can set up a decent, high-speed input system.

AMD Athlon XP2800+
GeForce FX5200 128MB
1024MB DDR 333MHz RAM
mm0zct
21
Years of Service
User Offline
Joined: 18th Nov 2003
Location: scotland-uk
Posted: 16th Aug 2004 07:56 Edited at: 16th Aug 2004 07:57
i have some input code somewhere that's good, it's like a windows input where you have to click on the field to type,click off the field and it stops entering, press enter to pass the contents of the fields to another stage, this was designed to be able to run with other code going on as normal sort of like a console, i'll post it later for you.

edit: also it doesn't matter how fast you type it doesn't miss any and you can use the backspace key to delete.

http://www.larinar.tk
AMD athlon thoroughbred 2200, 512Mb ram, 40Gb HD, ati saphire radeon 9600 atlantis w/128mb ddr ram, good creative-labs soundcard, cd-rw + dvd drives.
mm0zct
21
Years of Service
User Offline
Joined: 18th Nov 2003
Location: scotland-uk
Posted: 16th Aug 2004 18:20
here is the input boxes code as a 2 field form


http://www.larinar.tk
AMD athlon thoroughbred 2200, 512Mb ram, 40Gb HD, ati saphire radeon 9600 atlantis w/128mb ddr ram, good creative-labs soundcard, cd-rw + dvd drives.
jasuk70
21
Years of Service
User Offline
Joined: 3rd Dec 2002
Location: Hemel Hempstead
Posted: 16th Aug 2004 18:59
If this is pro, then SET TEXT TRANSPARENT will sort out the background getting overwritten by the text.

Jas

----
"What is this talk of 'release'? Klingons do not'release' software. It escapes leaving a bloody trail of developers and quality assurance people in its wake!"

Login to post a reply

Server time is: 2024-11-27 06:40:03
Your offset time is: 2024-11-27 06:40:03