AutoHotkey Community

It is currently May 27th, 2012, 9:04 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: February 16th, 2006, 7:36 am 
Offline

Joined: March 2nd, 2004, 10:10 pm
Posts: 443
Location: SLC, Utah
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.

Image - 1.0.41
Image - 1.0.42

thanks,
beardboy


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 16th, 2006, 7:45 am 
Offline

Joined: March 2nd, 2004, 10:10 pm
Posts: 443
Location: SLC, Utah
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 16th, 2006, 9:01 am 
Offline

Joined: November 8th, 2004, 12:46 am
Posts: 1271
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
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 17th, 2006, 1:14 am 
Offline

Joined: March 2nd, 2004, 10:10 pm
Posts: 443
Location: SLC, Utah
Thanks for the info, I hadn't seen that update and change.

thanks,
beardboy


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 17th, 2006, 3:50 am 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
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.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group