Res_Example.au3


SUBMITTED BY: Guest

DATE: May 28, 2013, 6:22 a.m.

FORMAT: Text only

SIZE: 2.0 kB

HITS: 1038

  1. #AutoIt3Wrapper_Res_File_Add=Gif.gif,IMGES,GIF,0
  2. #AutoIt3Wrapper_Res_File_Add=Bmp.bmp,IMGES,BMP,0
  3. #AutoIt3Wrapper_Res_File_Add=jpg.jpg,IMGES,JPG,0
  4. #AutoIt3Wrapper_Res_File_Add=Ico.ico,IMGES,ICO,0
  5. #AutoIt3Wrapper_Res_File_Add=EMF.EMF,IMGES,EMF,0
  6. #AutoIt3Wrapper_Res_File_Add=Button.bmp,IMGES,BUTTON,0
  7. #AutoIt3Wrapper_Res_File_Add=BKGND.bmp,IMGES,BKGND,0
  8. #AutoIt3Wrapper_Res_File_Add=ANSI.txt,STR,ANSI,0
  9. #AutoIt3Wrapper_Res_File_Add=UNICODE.txt,STR,UNICODE,0
  10. #include "Res_Ctrl.au3"
  11. #include <WinAPI.au3>
  12. #include <GUIConstantsEx.au3>
  13. #include <WindowsConstants.au3>
  14. #include <StaticConstants.au3>
  15. if Not (@Compiled) Then Exit(MsgBox(0,"Err","Must compile the Res_Example.au3 With Options"))
  16. $Gui = GUICreate("Gui Example",500,500,0,0)
  17. $ClID1 = ResCtrlCreatePicEx(10,10,200,100,"GIF","IMGES","GIF",-1,"",$WS_BORDER,0,0,14,800,0,"MS Sans Serif",2)
  18. $ClID2 = ResCtrlCreatePicEx(295,10,200,100,"BMP","IMGES","BMP",-1,"",$WS_BORDER,0,0,14,800,0,"MS Sans Serif",2)
  19. $ClID3 = ResCtrlCreatePicEx(10,120,200,100,"JPG","IMGES","JPG",-1,"",$WS_BORDER,0,0,14,800,0,"MS Sans Serif",2)
  20. $ClID4 = ResCtrlCreatePicEx(295,120,200,100,"ICO","IMGES","ICO",-1,"",$WS_BORDER,0,0,14,800,0,"MS Sans Serif",2)
  21. $ClID5 = ResCtrlCreatePicEx(10,230,480,160,"EMF","IMGES","EMF",-1,"",$WS_BORDER,0,0,14,800,0,"MS Sans Serif",2)
  22. $ClID6 = ResCtrlCreate_Button(214,100,-1,-1,"IMGES","BUTTON",-1,"",0,0,True)
  23. ;$W = -1 $H = -1 // $ReSize = True
  24. $BOOL = ResSetBackGroundBmp($Gui,"IMGES","BKGND",-1,"")
  25. $BOOL = ResSndPlaySound("IMGES","WAV",-1,"Res.Dll",True); LOOP = True
  26. GUICtrlCreateLabel(StringResGet("STR","ANSI",-1,False,""),10,400,480,40,BitOR($WS_BORDER,$SS_CENTER,$SS_CENTERIMAGE))
  27. GUICtrlCreateLabel(StringResGet("STR","UNICODE",-1,True,""),10,450,480,40,BitOR($WS_BORDER,$SS_CENTER,$SS_CENTERIMAGE))
  28. GUISetState()
  29. Do
  30. $msg = GUIGetMsg()
  31. Until $msg = $GUI_EVENT_CLOSE

comments powered by Disqus