 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
beardboy
Joined: 02 Mar 2004 Posts: 444 Location: SLC, Utah
|
Posted: Thu Feb 16, 2006 7:36 am Post subject: Window Resize / Repaint Bug |
|
|
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 |
|
 |
beardboy
Joined: 02 Mar 2004 Posts: 444 Location: SLC, Utah
|
Posted: Thu Feb 16, 2006 7:45 am Post subject: |
|
|
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 |
|
 |
Serenity
Joined: 08 Nov 2004 Posts: 894
|
Posted: Thu Feb 16, 2006 9:01 am Post subject: |
|
|
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 |
|
 |
beardboy
Joined: 02 Mar 2004 Posts: 444 Location: SLC, Utah
|
Posted: Fri Feb 17, 2006 1:14 am Post subject: |
|
|
Thanks for the info, I hadn't seen that update and change.
thanks,
beardboy |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Fri Feb 17, 2006 3:50 am Post subject: |
|
|
| 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 |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|