
Achilles
-
Posts
2,857 -
Joined
-
Last visited
Reputation Activity
-
-
Achilles got a reaction from t0nZ in Making a map!
I'm planning on making a game that quizes the user on the capitals and positions of South American countries (eventually all the world once I get to summer...). However, In order to ask a question the computer will randomly highlight one of the countries by making the whole country a specific unique color. Instead of making about 15 different images where each different image has a different color highlighted I was wondering if there was a way to "fill" (like paint does) a certain country.
I have a short example:
GuiCreate('Map of South America', 516, 761) GuiCtrlCreatePic(@ScriptDir & '\South America Map.gif', 5, 5, 506, 751) ;Image is attached GUISetState() Do Sleep(50) Until GuiGetMsg() = -3
-
Achilles got a reaction from yutijang in Exit Function Early?
Use Return
For example
Func _DoNothingMuch() Sleep(2000) Return Sleep(2000) EndFunc This will sleep two seconds, and then exit... so the next Sleep(2000) is useless.
-
Achilles got a reaction from Xandy in Resizable GUI
When you create the GUI add $WS_SIZEBOX to the style.
For setting the max/min use this
GUIRegisterMsg($WM_GETMINMAXINFO, 'WM_GETMINMAXINFO') with this function
Func WM_GETMINMAXINFO($hWnd, $MsgID, $wParam, $lParam) #forceref $MsgID, $wParam If $hWnd = $nowPlayingGUI Then; the main GUI-limited Local $minmaxinfo = DllStructCreate("int;int;int;int;int;int;int;int;int;int", $lParam) DllStructSetData($minmaxinfo, 7, 300); min width DllStructSetData($minmaxinfo, 8, 200); min height EndIf Return 0 EndFunc