AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Window Resize / Repaint Bug

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
beardboy



Joined: 02 Mar 2004
Posts: 444
Location: SLC, Utah

PostPosted: Thu Feb 16, 2006 7:36 am    Post subject: Window Resize / Repaint Bug Reply with quote

Chris,

There seems to be a problem with moving controls in 1.0.42. The below pictures are from 1.0.41 (looks normal) and 1.0.42 (buttons overlaying). If you move your mouse over the buttons it kinds of fixes the problem.

- 1.0.41
- 1.0.42

thanks,
beardboy
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
beardboy



Joined: 02 Mar 2004
Posts: 444
Location: SLC, Utah

PostPosted: Thu Feb 16, 2006 7:45 am    Post subject: Reply with quote

I know you like code examples....
Code:
Gui, +resize
Gui, Add, Button, x175 y+2 w40 h20 vAddTask, &Add
Gui, Add, Button, x+0 w40 h20 vEditTask, &Edit
Gui, Add, Button, x+0 w40 h20 vDone, &Done
Gui, Add, Button, x+0 w45 h20 vDeleteTask, &Delete
Gui, Show, w200 h50, Test
return

GuiClose:
ExitApp

GuiSize:
if ErrorLevel = 1  ; The window has been minimized.  No action needed.
  return
GuiControl, 1:Move, AddTask, % "x" . a_guiwidth - 170
GuiControl, 1:Move, EditTask, % "x" . a_guiwidth - 130
GuiControl, 1:Move, Done, % "x" . a_guiwidth - 90
GuiControl, 1:Move, DeleteTask, % "x" . a_guiwidth - 50
return

Run this and then stretch the window to the left or right and it will cause the problem I deminstrated with the pictures.

thanks,
beardboy
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Serenity



Joined: 08 Nov 2004
Posts: 894

PostPosted: Thu Feb 16, 2006 9:01 am    Post subject: Reply with quote

I think this is due to the changes made to the GuiControl, Move command to fix the gui flickering on resize problem. Try using GuiControl, MoveDraw instead.

Quote:
MoveDraw [v1.0.41.02+]: Same as "Move" (above) except that it also repaints the region of the GUI window occupied by the control. Although this may cause an unwanted flickering effect when called repeatedly and rapidly, it solves painting artifacts for certain control types such as GroupBoxes. In versions prior to 1.0.41.02, "MoveDraw" was the behavior used by "Move".

_________________
"Anything worth doing is worth doing slowly." - Mae West
Back to top
View user's profile Send private message Visit poster's website
beardboy



Joined: 02 Mar 2004
Posts: 444
Location: SLC, Utah

PostPosted: Fri Feb 17, 2006 1:14 am    Post subject: Reply with quote

Thanks for the info, I hadn't seen that update and change.

thanks,
beardboy
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Fri Feb 17, 2006 3:50 am    Post subject: Reply with quote

If that doesn't explain it fully, please let me know. This change was made (even though it breaks some existing scripts) because MoveDraw causes a fairly severe flickering effect when resizing or moving large controls like ListViews.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group