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.

Dark GDK / dbGetEntry() Error

Author
Message
Neo Cortex
17
Years of Service
User Offline
Joined: 6th Jan 2007
Location:
Posted: 8th Aug 2007 15:40
Hi, i read the previous articles about the problems with dbGetEntry()
but the post closed so i created a new one.

i use barnski's latest code-snipped



but then i tried all keys on keyboard and the app crashed as i pressed the TAB-key and other control keys that lead to crash.

so i ask, is this an error of the dbGetEntry()?
cause when i have to check the scancode entry to avoid control-keys
i loose the benefits of the dbGetEntry() function.

please help.

do you know another possibility to get the content of the keyboard-buffer.

thx

DB Noob
Charles
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: Phoenix, AZ USA
Posted: 11th Aug 2007 12:09
One method would be to use dbScanCode().
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 20th Sep 2007 19:56
..im with Charles.. When you are talking gfx and gui... and windows controls aren't gonna do it for you - make your own dilly - a "cursor" - use scancode - deal with backspace at least and max length - the size on screen - some font drawing deal - and just make your own input box. Then you only need for scancode they can type, the arrows, and tab (so they have a keyboard way to go to next field)

I understand this defeats the purpose of dbGetEntry() but this may be the way to go. If you break it down - keyboard+managed string they typed - and the gfx are separate - you can SKIN IT for whatever you want to use it in - and resuse the code.

Login to post a reply

Server time is: 2024-11-16 20:08:15
Your offset time is: 2024-11-16 20:08:15