1. Mouse Stuff?
I am working on a program that uses textToBitmap images. If I want to
remove one of these images by leftclicking on it and then bring it back
by rightclicking on it (or something along those lines)...
How would I go about that? I looked at Dave Cunny's Connect Four game
but that code is too complicated for me to figure out. I just don't have a
clue. Do I have to set up an invisible grid in my window and tell the
computer to repaint that portion of the window on leftclick and on
rightclick bring it back somehow? I'm dealing with simple solid and hollow
dots. Thanks for all help.
2. Re: Mouse Stuff?
On Tue, 2 May 2000 06:32:39 -0400, David Roach wrote:
>I am working on a program that uses textToBitmap images. If I want to
>remove one of these images by leftclicking on it and then bring it back
>by rightclicking on it (or something along those lines)...
>How would I go about that? I looked at Dave Cunny's Connect Four game
>but that code is too complicated for me to figure out. I just don't have a
>clue. Do I have to set up an invisible grid in my window and tell the
>computer to repaint that portion of the window on leftclick and on
>rightclick bring it back somehow? I'm dealing with simple solid and hollow
>dots. Thanks for all help.
David,
I have uploaded a simple example to http://cnw.com/~bkb/dots.zip
It uses pixmap graphics and double buffering for fast repaints. Left-click
on the dots to toggle them from solid to hollow (and vice-versa).
Hopefully it is simple enough to understand and gives you enough ideas to
get you started on your project.
-- Brian
3. Re: Mouse Stuff?
Thanks. It is much apreciated. I'll let you know if it helps.
Dave