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: 155

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: 155

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
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Tue Dec 30, 2025 10:13 pm    Post subject: Reply with quote

Happy NewYear Marcelo

Sorry I came late to see this.

But I'm curious and thinking that you want
the text to look like its RE-entering back by
way of the right side of text-line-BOX.

*Couldn't think of a way right now.

In HTML its easy by using the 'MARQUEE' command.
EXAMPLE: <you would have to convert the .jpg to TXT>
<TD width="55%" height="50">
<MARQUEE SCROLLDELAY=150 BGCOLOR=#000000 Loop=infinite DIRECTION=RIGHT><IMG SRC="Truckoil.jpg"></MARQUEE>


{maybe you already thought of this HTML idea}

Just saying in case this HTML method might give you ideas.

I like the way your doing it and maybe someone else knows
the answer to your original idea of doing it.

cheers 😎
Back to top
View user's profile Send private message Visit poster's website
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