I am about to finalize my full application soon and need small help linking a credit button to it. I want to be able attach my Credits script to the main application GUI so when the user press on the credit button it open up then it close and return to the main GUI.
i manage to customize both but when ever i tried to link it, its not showing correctly and cause miss interface. this is the main app GUI:
Code: Select all
Gui, Add, Button, x310 y32 w130 h30 gSettings, Credit
Gui, Show, x450 y163 h380 w460 , Application ABC
return
Settings:
;here i want to put my Credits infos windpow script
return
GuiEscape:
GuiClose:
ExitApp
and here is my Credits info script:
Code: Select all
WinH = 80 ; Height of GUI
YPos1 := WinH - 10 ; Bottom of GUI Window
YPos2 := YPos1 + 20 ; 60 pixels gap
YPos3 := YPos2 + 10
YPos4 := YPos3 + 0
TestText =
(LTrim
Producer:
Programmer:
AssistantProducer: Yes..only me :D
BYE
)
Gui +ToolWindow +AlwaysOnTop
Gui Margin, 0, 0
Gui Add, Picture, vIcon1 x12 y%YPos1% h16 w16 Icon44, shell32.dll
Gui Add, Text, vText1 x30, Special thanks to:
Gui Add, Text, vText4 x5 y%YPos1%, %TestText%
Gui Show, w189 h%WinH%, Credits:
Loop
{
YPos1--
GuiControl Move, Icon1, y%YPos1%
GuiControl Move, Text1, y%YPos1%
YPos2--
GuiControl Move, Icon2, y%YPos2%
GuiControl Move, Text2, y%YPos2%
YPos3--
GuiControl Move, Icon3, y%YPos3%
GuiControl Move, Text3, y%YPos3%
YPos4--
GuiControl Move, Text4, y%YPos4%
GuiControlGet Text4, Pos
If (text4Y + text4H < WinH)
Break
Sleep 60
}
Sleep 5000
GuiEscape:
GuiClose:
ExitApp
any advice ?