Results 1 to 11 of 11

Thread: Color Problem - Need ROP Expert

  1. #1

    Thread Starter
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    A lot of the time while images are being dragged/moved around the screen windows doesnt paint the image properly.

    I've seen the same thing happen lots of times, and I believe users expect that kind of thing.
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  2. #2
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    so... how you draw that line?

  3. #3

    Thread Starter
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    who? me or him ?
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  4. #4
    PowerPoster
    Join Date
    Jul 2001
    Location
    Tucson, AZ
    Posts
    2,166
    plenderj:

    Thanks for the feedback. I've seen a program where colors remain as choosen while being dragged.

    Question still is -- how did they do it?

  5. #5

    Thread Starter
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Well then yeah back to fox's question, how are you drawing the line
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  6. #6
    PowerPoster
    Join Date
    Jul 2001
    Location
    Tucson, AZ
    Posts
    2,166
    See attached example.

    Trying changing color to white (Proc: DrawLine) and line doesn't'show at all.
    Attached Files Attached Files

  7. #7
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    Step away with that API Pens.. ^_^

  8. #8
    PowerPoster
    Join Date
    Jul 2001
    Location
    Tucson, AZ
    Posts
    2,166
    Fox:

    You're going to have to elaborate more as I'm not understanding your question or comment.

  9. #9
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    Hm well, why don't you just select draw color by setting the picturebox's ForeColor (or FillColor? try both) and then draw the line with MoveToEx/LineTo..?

  10. #10
    PowerPoster
    Join Date
    Jul 2001
    Location
    Tucson, AZ
    Posts
    2,166
    Fox:

    Have tried it setting picbox colors as you suggest. Same thing.

    FYI - .ForeColor calls the API, so have eliminated one step with my code.

  11. #11
    PowerPoster
    Join Date
    Jul 2001
    Location
    Tucson, AZ
    Posts
    2,166
    Anyone else have a solution or is this unsolvable??

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