Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Global $iUnmarked = 0x5C5C5C
- Global $iMarked = 0x0400FF
- Global $iX_Origin = 20
- Global $iY_Origin = 30
- Global $nX_Distance = 79
- Global $nY_Distance = 52.5
- Global $iWidth = 45
- Global $iHeight = 45
- Global $iColumns = 5
- Global $iRows = 8
- Global $aPixel[$iColumns * $iRows]
- Global $hGUI = GUICreate("Example", ($iColumns - 1) * $nX_Distance + $iX_Origin * 2 + $iWidth, ($iRows - 1) * $nY_Distance + $iY_Origin * 2 + $iHeight)
- For $i = 0 To 39
- $aPixel[$i] = GUICtrlCreateButton("", Mod($i, $iColumns) * $nX_Distance + $iX_Origin, Floor($i / $iColumns) * $nY_Distance + $iY_Origin, $iWidth, $iHeight)
- Next
- GUISetState()
- While GUIGetMsg() <> -3
- WEnd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement