Announcement

Collapse
No announcement yet.

Drawing rectangles with the mouse

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Drawing rectangles with the mouse

    Would anyone be so kind as to point me to an example of drawing rectangles on a DDT created form(Rectangle drawing doesn't have to be DDT, I am just creating the forms and other stuff using DDT) using the rodent - a.k.a the mouse? I have made several attenpts to find an example, but haven't had much luck.

    Thanks,
    Adam

  • #2
    There is an excellent file at PB's ftp site containing a lot of
    samples from Charles Petzold's book, Programming Windows 95.
    Download it, unzip it and check out the samples for chapter 6,
    called Blokout1 and Blokout2.
    http://www.powerbasic.com/files/pub/pbwin/petzold.zip

    ------------------

    Comment


    • #3
      please look at this demo for drawing objects. if you want
      to use the mouse to draw a window i.e. button, you can extract
      the code from this.



      hth
      regards, jules

      Comment


      • #4
        Thanks guys, I downloaded both the petzold.zip file and the shapes example and they are both good sources of information.


        Regards,
        Adam

        ------------------

        Comment

        Working...
        X