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 / dbPrint

Author
Message
Denaje
19
Years of Service
User Offline
Joined: 5th Feb 2005
Location:
Posted: 11th Mar 2005 08:16
How do I keep the cursor on the same line after I use dbPrint()? In DB, you do it by putting a semicolon after the print statement, but obviously that doesn't work in C++.

"Anyone who is not shocked by quantum theory has not understood it."
-Neils Bohr
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 11th Mar 2005 16:09
You would need to work out the length of the text, as a font using dbTextWidth and then position the cursor so many pixels after that.

Visit http://homepages.nildram.co.uk/~nickk/
Questions are a burden to others, answers a prison for oneself.
Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 11th Mar 2005 22:18
Try and find out if there is a dbPrintC command like in DBP, that does what you want.


"Lets migrate like bricks" - Me

Login to post a reply

Server time is: 2024-11-18 23:44:26
Your offset time is: 2024-11-18 23:44:26