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 / Issues with moving a box

Author
Message
JohnnyHand
15
Years of Service
User Offline
Joined: 11th Nov 2009
Location:
Posted: 11th Nov 2009 22:21
I want to move the entire box, not just draw a thick line down the screen. What am I missing?

puppyofkosh
17
Years of Service
User Offline
Joined: 9th Jan 2007
Location:
Posted: 12th Nov 2009 00:48
Try putting dbCLS(); before the dbSync();
american eagle
17
Years of Service
User Offline
Joined: 2nd Aug 2007
Location:
Posted: 12th Nov 2009 00:58
puppy of kosh he may need to put dbCLS(); after dbSync(); my friend
in your case nothing will be drawn..
JohnnyHand
15
Years of Service
User Offline
Joined: 11th Nov 2009
Location:
Posted: 12th Nov 2009 01:18
I had actually tried the dbCLS() before dbSync() earlier today... and it didn't change much... didn't think about putting it after. I will let you know what happens.
JohnnyHand
15
Years of Service
User Offline
Joined: 11th Nov 2009
Location:
Posted: 12th Nov 2009 01:22
Well, my friends. I slapped dbCLS() after dbSync(), and I still get the same results... a rectangle that turns into a thick line when I press the down arrow.

(I went ahead and retried dbCLS() before dbSync() and reconfirmed my earlier experiment)

I appreciate the help. Any other suggestions?
Marth Koopa
16
Years of Service
User Offline
Joined: 23rd Apr 2008
Location:
Posted: 12th Nov 2009 07:19
I tried your code and putting dbCLS() after dbSync() worked for me.

american eagle
17
Years of Service
User Offline
Joined: 2nd Aug 2007
Location:
Posted: 12th Nov 2009 10:00
well it should work I tried it and Marth said also that it works fine this way..
a little note you don't have to define the dbDownKey() function it's already defined I see u put int dbDownKey() that is not needed and nay be causing an issue
JohnnyHand
15
Years of Service
User Offline
Joined: 11th Nov 2009
Location:
Posted: 12th Nov 2009 16:42
So I took out the int dbDownKey()... and then I tried it one more time.


I have included a screenshot of the problem.

Attachments

Login to view attachments
JohnnyHand
15
Years of Service
User Offline
Joined: 11th Nov 2009
Location:
Posted: 12th Nov 2009 16:42
And this is the after.

Attachments

Login to view attachments
JohnnyHand
15
Years of Service
User Offline
Joined: 11th Nov 2009
Location:
Posted: 17th Nov 2009 01:17
Well, I really do appreciate the attempts to steer me in the correct direction, but it looks like I'll have to shelve this experiment for now (at least until I get a little more fluent in c++ and the workings of dark gdk).

If I ever stumble across the fix, I'll be sure to report my findings.

Login to post a reply

Server time is: 2024-11-20 11:29:18
Your offset time is: 2024-11-20 11:29:18