forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Slide Text Efect

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
marcelo
Contributor
Contributor


Joined: 10 May 2008
Posts: 151

PostPosted: Mon Jan 27, 2025 7:46 pm    Post subject: Slide Text Efect Reply with quote

Hi, I'm trying to get some text to show up simulating a slide effect.
This is the code I'm using to get there but I'd like the text to reappear on the right and I can't seem to do that.
Any ideas?

Code:

OPTION decimalsep,.
%%SlidePos = 1
%%SlideWidth = 100
%%Texto = Esta es una cadena de texto que no entra en el recuadro y necesita un slide
DIALOG CREATE,Slide Text,-1,0,661,160
DIALOG ADD,STYLE,display,Verdana,16
DIALOG ADD,LINE,LINE1,56,80,496,48
DIALOG ADD,TEXT,TEXT1,70,100,448,24,,,display
DIALOG SHOW

:Menu
wait 0.1,event
GOto @event()



:Timer
%%SlideText = @SubStr(%%Texto,%%SlidePos,%%SlideWidth)
if @equal(@Len(%%SlideText),1)
   %%SlidePos = 0
end
Dialog set,Text1,%%SlideTExt
%%SlidePos = @succ(%%SlidePos)
Goto Menu

:Close
Stop
Back to top
View user's profile Send private message
marcelo
Contributor
Contributor


Joined: 10 May 2008
Posts: 151

PostPosted: Tue Jan 28, 2025 4:32 pm    Post subject: Reply with quote

So far, I've found that adding the necessary spaces before the %%Texto string using @fill() achieves the effect I want.
What I still can't find is a way to automate this for any text string without having to manually find the number of spaces...
I'll keep trying...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group