Re: Mouse Stuff?

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu