Results 1 to 2 of 2

Thread: Graphics problem

Hybrid View

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Sep 2002
    Posts
    19

    Graphics problem

    Hi,
    can any one tell me that how can i acheive the following thing,

    i have a picture box with some drawing in it.now i have an option
    that user can select a shape for example filled circle from the
    toolbar present in the program with the help of mouse and
    place it on the pre drawn drawings in the picture box
    (this is all happening at run time) if the user again clicks the
    mouse button the circle shape is removed and the actual shapes
    behind the circle are displayed again.How can i acheive this.
    please help. One solution is using Xor pen mode but it changes the original color of the shape.give me some other solution that can work.

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Save each shape drawn and if the user clicks one remove it from the list and redraw all others.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width