pretty complex mouse tracking..[tracking painted objs] - DOTNET

This is a discussion on pretty complex mouse tracking..[tracking painted objs] - DOTNET ; Hi , Some time ago i made this little program that paints all .NET colors on a form. It elegantly figures how many boxes can fit on to the client and then paints them accordingly.It also figures the right text ...

+ Reply to Thread
Results 1 to 2 of 2

pretty complex mouse tracking..[tracking painted objs]

  1. Default pretty complex mouse tracking..[tracking painted objs]

    Hi ,

    Some time ago i made this little program that paints all .NET colors
    on a form. It elegantly figures how many boxes can fit on to the
    client and then paints them accordingly.It also figures the right text
    color.

    See it for yourself :
    http://gidsfiles.googlepages.com/Colours.exe

    I've added mouse tracking to it already. If can figure which box the
    mouse is on , and if you *click* a box , it hight lights. Now , this
    works like a treat if you've *maximized* the window. If you restore or
    resize the wnd and **scroll**, everything gets muddled up , it really
    turns into a mess. Since it's set to resize redraw , minimze , then
    restore the window and it nicely repaints everything. So , could
    someone help me fix that!??
    Also , if there is a better way of doing anything somewhere , plz tell
    me.

    Source:http://gidsfiles.googlepages.com/FrmColors.cs
    -i've tried adding comments on each line , plz tell me if something is
    still not clear.

    I'm guessing this is possible because i'm thinking listviews in
    LargeView are pretty much the same thing. And listviews can scroll
    safely without getting mucked up.

    Thanks so much

    (i'm new to drawing btw , i've just started GDI+ and i have'nt done
    GDI or something earlier)

    Gideon


  2. Default Re: pretty complex mouse tracking..[tracking painted objs]

    My article on understanding auto-scroll will help you.

    --
    --
    Bob Powell [MVP]
    Visual C#, System.Drawing

    Ramuseco Limited .NET consulting
    http://www.ramuseco.com

    Find great Windows Forms articles in Windows Forms Tips and Tricks
    http://www.bobpowell.net/tipstricks.htm

    Answer those GDI+ questions with the GDI+ FAQ
    http://www.bobpowell.net/faqmain.htm

    All new articles provide code in C# and VB.NET.
    Subscribe to the RSS feeds provided and never miss a new article.


    "giddy" <gidisrael> wrote in message
    news:1178092769.289226.57300@y80g2000hsf.googlegroups.com...
    > Hi ,
    >
    > Some time ago i made this little program that paints all .NET colors
    > on a form. It elegantly figures how many boxes can fit on to the
    > client and then paints them accordingly.It also figures the right text
    > color.
    >
    > See it for yourself :
    > http://gidsfiles.googlepages.com/Colours.exe
    >
    > I've added mouse tracking to it already. If can figure which box the
    > mouse is on , and if you *click* a box , it hight lights. Now , this
    > works like a treat if you've *maximized* the window. If you restore or
    > resize the wnd and **scroll**, everything gets muddled up , it really
    > turns into a mess. Since it's set to resize redraw , minimze , then
    > restore the window and it nicely repaints everything. So , could
    > someone help me fix that!??
    > Also , if there is a better way of doing anything somewhere , plz tell
    > me.
    >
    > Source:http://gidsfiles.googlepages.com/FrmColors.cs
    > -i've tried adding comments on each line , plz tell me if something is
    > still not clear.
    >
    > I'm guessing this is possible because i'm thinking listviews in
    > LargeView are pretty much the same thing. And listviews can scroll
    > safely without getting mucked up.
    >
    > Thanks so much
    >
    > (i'm new to drawing btw , i've just started GDI+ and i have'nt done
    > GDI or something earlier)
    >
    > Gideon
    >



+ Reply to Thread

Similar Threads

  1. SkimpyGimpy PNG canvas w/ Javascript mouse tracking
    By Application Development in forum Javascript
    Replies: 0
    Last Post: 05-08-2007, 07:21 AM
  2. Replies: 2
    Last Post: 03-01-2006, 01:20 PM
  3. 3D tracking for DV, $100.
    By Application Development in forum Graphics
    Replies: 1
    Last Post: 08-16-2005, 10:51 AM
  4. Tracking mouse movements in Tk....
    By Application Development in forum Perl
    Replies: 5
    Last Post: 04-30-2005, 01:11 AM
  5. What is a good representation for 2d curve tracking - Spline tracking
    By Application Development in forum Graphics
    Replies: 0
    Last Post: 09-24-2003, 01:21 PM