oren Posted November 18, 2010 Posted November 18, 2010 (edited) Hello ,I have a gui problem.. I don't know if its the right sub-forum to post But because its not that I have a question how to do something its just that the something go bad I decided to post in here.Anyway a few examples:Before Minimize it look good like thisAfter minimize and then restore from task-bar it look like thisAny reason why? and How can I fix it?For the background I useGUICtrlCreatePic ( "BackPic.jpg", 1, 1,800,600) GuiCtrlSetState(-1,$GUI_DISABLE) GUISetState(@sw_show)and for the pieces I use (Example..)$Board[1][$s][0] = guictrlcreatepic("",720,30+40*$s) $hGreen1 = _Icons_Bitmap_Load(@ScriptDir & "\white.png") _SetHImage($Board[1][$s][0],$hGreen1 ) GuiCtrlSetState(-1,$GUI_DISABLE)I've Added the pictures ,Thank You.I've added a example Just download all the files to the same dir and run ForumTestForumTest.au3Icons.au3 Edited November 18, 2010 by oren
Juvigy Posted November 18, 2010 Posted November 18, 2010 Please add full source file so we can test. Nice "tabla" game BTW
oren Posted November 18, 2010 Author Posted November 18, 2010 (edited) Thanks. I build something for the GUI Testing.Forum.rar Edited November 18, 2010 by oren
oren Posted November 18, 2010 Author Posted November 18, 2010 AnyOne can help me? Sorry for double posting...
Juvigy Posted November 19, 2010 Posted November 19, 2010 I would suggest to disable minimize button.It is a workaround though but an easy one.
UEZ Posted November 19, 2010 Posted November 19, 2010 Here a not best solution: ... $op = 0 $Dice = -1 $Dice1 = -1 $progres = -2 $Tempo = 0 Opt("GUIOnEventMode", 1) GUISetOnEvent($GUI_EVENT_RESTORE, "Test") GUISetOnEvent($GUI_EVENT_CLOSE, "_Exit") While Sleep(100) WEnd Func Test() GUICtrlCreatePic("BackPic.jpg", 1, 1, 800, 600) SetTable() EndFunc Func _Exit() Exit EndFunc Func SetTable() ;;First Function to set the board at starting position ;; Starting setting Board white first ... Just replace the code above with the appropriate section in original code. Br, UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ
Juvigy Posted November 23, 2010 Posted November 23, 2010 The solution i found elsewhere on the forum is to specify the dimensions like this: $Board[1][$s][0] = GUICtrlCreatePic("", 720, 30 + 40 * $s, 41, 40) and not $Board[1][$s][0] = guictrlcreatepic("",720,30+40*$s) BTW i have a question for the author - how do you move the pieces across the board ? I mean how do you select the pieces with the mouse and drop them on the desired place? The actual move i guess is done by GUICtrlSetPos.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now