| |
|
|
Uckermann | Hi, I have already everywhere sought, have momentarily unfortunately too no idea, How I a horizontale Marquee (analog the marquee in html) aufsetze. |
|
|
| |
|
|
|
| Verschoben, Wrong Forum.
Marquee is with HTML you don't say so, with JS (JavaScript) already. Date to JS Marquee. |
|
|
| |
|
|
|
Carlo Keil | Holzhammerlösung for reines Profan (Perhaps falls someone Yes yet something eleganteres one): 1. Memory-Bitmap lay out 2. Memory-Bitmap with the desired Text describe 3. Bitmap-neckline with beginning the Textes from the Memory-Bitmap in that Window copy 4. next Bitmap-neckline from the Memory-Bitmap (1 Pixel moreover right begin) in that Window copy (naturally over The first copy drüber) 5. step 4 as long as repeat, To you The Pixel go out
HTH Carlo |
|
|
| |
|
|
|
Uckermann | Hello If, I meant naturally in a Window under XProfan. One String with several characters should most possible displayed go. there not any characters in this Size showing can, should these characters as Marquee angezeit go. with one constantly not equal wechselten Text.
Greeting Michael Uckermann |
|
|
| |
|
|
|
| @Hello Michael here one Text Thomas Hölzer (think time, the is spare) as beginning is the code integrally well CompileMarkSeparationPRFellow-Vorlage
Autor: Thomas Hölzer, 1998
Ein einfacher Lauftext
Def Sleep(1) !"KERNEL32","Sleep"
Proc LaufText
Parameters delay%,txt$
SetTimer delay%
While Neq(Len(txt$),0)
Sleep(delay%)
WaitInput
Let txt$=Del$(txt$,1,1)
StartPaint GetActiveWindow()
DrawText 0,20,Add$(txt$," ")
EndPaint
Angehängter Leerstring verhindert "Schmierspuren"
Wend
KillTimer
EndProc
Beispiel
Cls
UseFont "ARIAL",16,0,0,0,0
LaufText 100,"Bei diesem Verfahren ist es schwierig, den Text weich scr To let."
|
|
|
| |
|
|
|
Jac de Lad | Or the SKControl.dll. The is super! |
|
|
| Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE) Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP | 01/24/07 ▲ |
|
|
|
|
| Büdde - even in echtzeit , should heissen, alike How quick the computer is - the Text becomes always gleichschnell scroll - and in the Contrast To Marquee too yet flimmerfreier, nevertheless sure on x to put To optimize habs only hingepinselt. CompileMarkSeparation!{$cleq}
const outptxt="Hallo Welt"
windowstyle 80
cls
showmax
mcls maxx,maxy
startpaint -1
usefont "Arial",100,0,0,0,0
textcolor 0,-1
long twidth=TextWeite(outptxt,nul)
endpaint
long scrollwidth=maxx+twidth
whilenot iskey(27) {
startpaint -1
cls $00FFFFFF
drawtext maxx-mod(gettickcount/10,scrollwidth),100,outptxt
endpaint
mcopybmp 0,100 - maxx,100>0,100;0
}
end
Proc TextWeite Autor: Gerhard Putschalka, leicht abgeändert iF
Parameters T$,Prt_Ctl%
Declare Z$,Adr&,Adr1&,Leng&
Let Z$ = "000000" wichtig ab Profan 7.x !
Let Adr&=@If(@LT$(@Left$($PROFVER,1),"7"),@Add(@Addr(T$),1),@Addr(T$))
Let Adr1&=@If(@LT$(@Left$($PROFVER,1),"7"),@Add(@Addr(Z$),1),@Addr(Z$))
GetTextExtentPoint32A(%HDC,Adr&,@Len(T$),Adr1&)
Let Leng&=@Long(Adr1&,0)
Let Leng&=@If(@Equ(Prt_Ctl%,1),(@Long(Adr1&,0)/10),@Long(Adr1&,0))
Return Leng&
ENDPROC
or. for nonXPSEler: CompileMarkSeparationDECLARE __cf1&
Def __cf1(2) !"KERNEL32","GetProcAddress"
Def __cf2(1) !"KERNEL32","GetModuleHandleA"
__cf1&=__cf1(__cf2("gdi32.dll"),"GetTextExtentPoint32A")
WINDOWSTYLE 80
CLS
SHOWMAX
MCLS %MAXX,%MAXY
STARTPAINT -1
USEFONT "Arial",100,0,0,0,0
TEXTCOLOR 0,-1
var TWIDTH&=TEXTWEITE("Hallo Welt",0)
ENDPAINT
var SCROLLWIDTH&=%MAXX+TWIDTH&
WHILENOT ISKEY(27)
STARTPAINT -1
CLS $00FFFFFF
DRAWTEXT %MAXX-MOD(&GETTICKCOUNT/10,SCROLLWIDTH&),100,"Hallo Welt"
ENDPAINT
MCOPYBMP 0,100 - %MAXX,100>0,100;0
ENDWHILE
end
proc TEXTWEITE
PARAMETERS T$,PRT_CTL%
DECLARE Z$,ADR&,ADR1&,LENG&
LET Z$="000000"
LET ADR&=@IF(@LT$(@LEFT$($PROFVER,1),"7"),@ADD(@ADDR(T$),1),@ADDR(T$))
LET ADR1&=@IF(@LT$(@LEFT$($PROFVER,1),"7"),@ADD(@ADDR(Z$),1),@ADDR(Z$))
call(__cf1&,%HDC,ADR&,@LEN(T$),ADR1&)
LET LENG&=@LONG(ADR1&,0)
LET LENG&=@IF(@EQU(PRT_CTL%,1),(@LONG(ADR1&,0)/10),@LONG(ADR1&,0))
RETURN LENG&
endproc
|
|
|
| |
|
|
|
Frank Abbing | The ProSpeed.dll has moreover a demonstration-Source. there can you each type use, The Font must a beliebigen background and have The Font can bebiebig quick go through. there the Scrolltext one Sprite is, runs it completely selbstständig and independent of Profanprogramm. |
|
|
| |
|
|
|
Uckermann | Vielen Thanks for speedy Answer!!!!
Greeting Michael Uckermann |
|
|
| |
|
|