Hi fade2gray,
Thanks for the suggestion. I tried to avoid additional controls on the gui, but I added an additional gap to the center row and column. I hope this solves the issue. To get it working change the following:
add 5 lines at the top of the script
Code:
;changes since 1.6
; - added a small gap in the mouse picker grid to identify the center (thanks fade2gray)
; - adjusted groupbox size and tab size
; - added reset of picker to default color on dimensional change
change the height of the groupbox at line 402
Code:
Gui, 1:Add, GroupBox, x5 y+10 Section w274 h305 -wrap, Color Picker
change the code of the grid at line 411 to
Code:
Loop, 15 {
Row = %A_Index%
dy := (Row = 8 OR Row = 9) ? "y+2" : ""
Gui, 1:Add, Progress, xs+5 %dy% w17 h17 vPgbColorPicker%Row%_1,
Loop, 14 {
Column := A_Index + 1
dx := (A_Index = 7 OR A_Index = 8) ? 2 : 0
Gui, 1:Add, Progress, x+%dx% w17 h17 vPgbColorPicker%Row%_%Column%,
}
}
change the height of the tab at line 664
Code:
}Else If (Tab1 = 3) {
GuiControl, 1:Move, Tab1, h430
and add the loops after the HalfDim line at line 737
Code:
HalfDim := Dim // 2 + 1
Loop, 15 {
Row = %A_Index%
Loop, 15
GuiControl, 1:+BackgroundDefault ,PgbColorPicker%Row%_%A_Index%
}