Code: Alles auswählen
;beispiel farbiger ticker mit atl.dll - hilfe
tickertxt1.s = "<BODY scroll='no' leftmargin='0' topmargin='0' bgcolor='black' text='red'><font size='2' face='Arial'><marquee direction=left scrollamount=5>*** test *** <b><font color='white'>test</font></b> </marquee></font></BODY>"
tickertxt2.s = "<BODY scroll='no' leftmargin='0' topmargin='0' bgcolor='blue' text='red'><font size='2' face='Arial'><marquee direction=right scrollamount=4>*** test *** <b><font color='yellow'>test</font></b> </marquee></font></BODY>"
OpenWindow(0,0,0,222,200,#PB_Window_SystemMenu|#PB_Window_ScreenCentered,"ticker...")
;tickerfenster
thoehe = 20
tbreite = 200
OpenLibrary(0, "ATL.dll")
CallFunction(0,"AtlAxWinInit")
thandle1 = CreateWindowEx_(0,"AtlAxWin","ABOUT:" + tickertxt1,#WS_VISIBLE|#WS_CHILD|#WS_DISABLED ,10,10,tbreite,thoehe,WindowID(0),0,GetModuleHandle_(0),0)
thandle2 = CreateWindowEx_(0,"AtlAxWin","ABOUT:" + tickertxt2,#WS_VISIBLE|#WS_CHILD|#WS_DISABLED ,10,130,tbreite,thoehe,WindowID(0),0,GetModuleHandle_(0),0)
Repeat
Until WaitWindowEvent()=#PB_Event_CloseWindow
DestroyWindow_(thandle1)
DestroyWindow_(thandle2)
CloseLibrary(0)
End
