Jump to content

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Find out more here. X
X


Photo

Force update/redraw gui


  • Please log in to reply
3 replies to this topic

#1 Champak

Champak

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 1,043 posts

Posted 18 September 2008 - 09:45 PM

I came across the function before, but can't remember what/where it is. So how do I force the redraw/painting of a GUI?

Thanks.

Edited by Champak, 18 September 2008 - 09:50 PM.








#2 SmOke_N

SmOke_N

    It's not what you know ... It's what you can prove!

  • Moderators
  • 15,856 posts

Posted 18 September 2008 - 09:54 PM

I came across the function before, but can't remember what/where it is. So how do I force the redraw/painting of a GUI?

Thanks.

You can try sending a SendMessage() + WM_PAINT message.

Or do something here: http://msdn.microsoft.com/en-us/library/ms534906(VS.85).aspx

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.


#3 Szhlopp

Szhlopp

    DC Talk JF

  • Active Members
  • PipPipPipPipPipPip
  • 469 posts

Posted 18 September 2008 - 10:15 PM

I came across the function before, but can't remember what/where it is. So how do I force the redraw/painting of a GUI?

Thanks.



_WinAPI_RedrawWindow ($GUI) ; Also sends $WM_PAINT
GUISetBkColor(0xF0F0F0)

Both redraw the window :)

#4 Champak

Champak

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 1,043 posts

Posted 19 September 2008 - 12:13 AM

Ah, the _WinAPI_RedrawWindow function is what I came across before and couldn't remember where/what it was. Thanks to both.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users