Advertisement
Aareon

PokeMarquee Done

Mar 20th, 2015
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. GUICreate("Marquee test",320,240,-1,-1,0x40000)
  2. _GUICtrlCreateMarquee("You stole ma berry!...5,5,150,24,"999999")
  3. GUICtrlSetResizing(-1,1)
  4. _GUICtrlCreateMarquee("Another<br>marquee",5,35,50,150,-1,-1,-1,"up")
  5. GUICtrlSetResizing(-1,1)
  6. GUISetState()
  7.  
  8. While GUIGetMsg() <> -3
  9. WEnd
  10.  
  11. Func _GUICtrlCreateMarquee($_MarText,$_MarX,$_MarY,$_MarWidth,$_MarHeight,$_MarBGColor=-1,$_MarLoop=-1,$_MarBehavior=-1,$_MarDirection=-1,$_MarScrollAmount=-1,$_MarScrollDelay=-1)
  12. Local $_MarString="<marquee width=100% height=100%"
  13. If $_MarLoop <> -1 Then $_MarString&=" loop="&$_MarLoop
  14. If $_MarBehavior <> -1 Then $_MarString&=" behavior="&$_MarBehavior
  15. If $_MarDirection <> -1 Then $_MarString&=" direction="&$_MarDirection
  16. If $_MarScrollAmount <> -1 Then $_MarString&=" scrollamount="&$_MarScrollAmount
  17. If $_MarScrollDelay <> -1 Then $_MarString&=" scrolldelay="&$_MarScrollDelay
  18. $_MarString &= ">"&$_MarText&"</marquee>"
  19. Local $_marIE = ObjCreate("Shell.Explorer")
  20. Local $_marReturn = GUICtrlCreateObj($_marIE,$_MarX,$_MarY,$_MarWidth,$_MarHeight)
  21. $_marIE.navigate("about:blank")
  22. $_marIE.document.body.topmargin=0
  23. $_marIE.document.body.leftmargin=0
  24. $_marIE.document.body.scroll="no"
  25. $_marIE.document.body.bgcolor=$_MarBGColor
  26. $_marIE.document.body.innerHTML = $_MarString
  27. $_marIE=0
  28. Return $_marReturn
  29. EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement