Announcement

Collapse
No announcement yet.

Dual Monitors and DrawText

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

  • Curtis De Vries
    Guest replied
    see: http://www.powerbasic.com/support/pb...ead.php?t=1627

    hope this helps.

    Leave a comment:


  • Colin Schmidt
    replied
    I played some more and found that the problem was the gradient background.

    I'm new to lowlevel windows programming so I'm not sure if this is a possible answer: Is the DrawGradient function taking too long to process on a dual monitor system, thus causing windows to step through the next lines of my program, and draw the text on the screen only a fraction of a second before the DrawGradient function draws over it?

    Thanks,

    -------------
    Colin Schmidt & James Duffy, Praxis Enterprises, Canada

    Leave a comment:


  • Colin Schmidt
    started a topic Dual Monitors and DrawText

    Dual Monitors and DrawText

    Hello, me again, and I have "the book" (Charles Petzold Programming Windows)

    I was working through examples and playing with DrawText but I could not keep my text up on the screen... Then when I opened up the Hello program in the samples directory (which was using the same methods I was) and I found that it had the same problem.

    As the Subject suggests, I am using dual monitors and this does appear to be the problem. Both my test code and the Hello program work perfect on a single monitor system. However, I do need the program I'm piecing together to work on dual monitors.

    The text would disappear as soon as any part of the window was moved off of on screen and onto another. I was able to fix this by simply trapping the %WM_MOVE message.

    The problem I can't solve is when the window is maximized and a toolbar (or the taskbar) is on AutoHide. As soon as the toolbar is asked to popup, the text in my window disappears. Also, every once in a while when the window is in the regular state, the text just disappears at a random amount of time.

    It is my understanding that when ever windows disturbs my window in any way, and my window needs to be repainted, windows sends me the %WM_PAINT message. But this does not appear to be the case in all situations when you have dual monitors.

    Does anyone else with dual monitors have the same problem with the Hello program?

    Any ideas?

    Thanks,

    -------------
    Colin Schmidt & James Duffy, Praxis Enterprises, Canada
Working...
X