scrolling text banner & command

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Jellobus
Posts: 317
Joined: Tue Dec 10, 2013 2:53 pm

scrolling text banner & command

Post by Jellobus » Sat Jul 19, 2014 4:10 am

Hi, :D

I tested scrolling text banner (check the link). It seems that no other commands is working until text moving is done.

Can it be possible doing other command while text is moving?


http://lessons.runrev.com/m/2592/l/1257 ... ext-banner

Cheers,


Louis

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: scrolling text banner & command

Post by Simon » Sat Jul 19, 2014 5:48 am

Hi Louis,
Try this;

Code: Select all

wait 6 ticks with messages ## 1/10th of a second
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Jellobus
Posts: 317
Joined: Tue Dec 10, 2013 2:53 pm

Re: scrolling text banner & command

Post by Jellobus » Sat Jul 19, 2014 5:58 am

Hi Simon,
I tried it but that is not exactly I wanted..The text stops when I send other commands.. is it possible to make text move without stops while execution of other commands?


Cheers,

Louis

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: scrolling text banner & command

Post by Simon » Sat Jul 19, 2014 6:10 am

How about this;

Code: Select all

on mouseUp
put "It is a truth universally acknowledged, that a single man in possession of a good fortune..." into me
if me <> empty then
send deleteText to me in 6
end if
end mouseUp

on deleteText
delete first character of me
end deleteText
Better?

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Jellobus
Posts: 317
Joined: Tue Dec 10, 2013 2:53 pm

Re: scrolling text banner & command

Post by Jellobus » Sat Jul 19, 2014 6:45 am

Hi Simon,

There are one banner field and one button "move".

If you click button "move" while banner field is working, button waits until banner field finishes command. I like to make the move button "move" regardless of working of the banner field.

Thanks!

Louis

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: scrolling text banner & command

Post by Simon » Sat Jul 19, 2014 6:58 am

Hi Louis,
I think you should post your stack so I don't have to guess at what you are trying to do.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Jellobus
Posts: 317
Joined: Tue Dec 10, 2013 2:53 pm

Re: scrolling text banner & command

Post by Jellobus » Sat Jul 19, 2014 7:14 am

Hi Simon,

This forum doesn't allow me attach the stack. it says "The extention livecode is not allowed"
I was thinking too complicated. I think I can achieve effect I wanted with your first suggestion. Thanks a lot! :D

Cheers,

Louis

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: scrolling text banner & command

Post by Simon » Sat Jul 19, 2014 12:41 pm

Hi Louis,
Glad you got it working.
For the future, you have to zip your .livecode to post it here.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

mrcoollion
Posts: 738
Joined: Thu Sep 11, 2014 1:49 pm

Re: scrolling text banner & command

Post by mrcoollion » Tue Apr 26, 2016 7:22 pm

Here is a scrolling banner example stack (build in livecode 8 ) for anyone who is interested.
I am scrolling text in the title widget.

Have fun with it :mrgreen: .

Greetings,

Paul
Attachments
ScrollingBannerExampleV01.zip
Scrolling banner example with title widget
(1.78 KiB) Downloaded 257 times

mrcoollion
Posts: 738
Joined: Thu Sep 11, 2014 1:49 pm

Re: scrolling text banner & command

Post by mrcoollion » Fri Aug 04, 2017 9:29 am

Found an alternative (easy?) way to make a ticker tape by using a browser widget and some html code.
This also opens many other ways to show text (left right up down ect....) as long as it is possible in html.
See attached example stack. (PS. I develop on windows 10 so check the code if you are not on windows)
HTMLScroller_V002.zip
Ticker tape example
(1.76 KiB) Downloaded 280 times
Here are sites you can get the html code from. There are many more if you search the internet :D
https://www.quackit.com/html/html_gener ... erator.cfm
https://www.w3schools.com/howto/howto_css_loader.asp


Advantages:
- Nonblocking meaning it does not intervene with anything the user does in the stack or card. It just keeps running without noticeable effect on the User Interface.
- You can use HTML formatting to make the text look special.
- Made a busy spinner with it...

- Disadvantagec (as I see it):
- Takes more space than a regulair livecode field.
- Need to generate a local file as an URL for the browser.

Have fun with experimenting....

regards,

Paul

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: scrolling text banner & command

Post by Klaus » Fri Aug 04, 2017 10:37 am

Hi Paul,

do you know the menaing of the word "necrophily"? :D


Groetjes

Klaus

mrcoollion
Posts: 738
Joined: Thu Sep 11, 2014 1:49 pm

Re: scrolling text banner & command

Post by mrcoollion » Fri Aug 04, 2017 11:13 am

Niet echt... :wink:

But for the purposes i mentioned it is an interesting alternative solution.
Last edited by mrcoollion on Fri Aug 04, 2017 11:45 am, edited 1 time in total.

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: scrolling text banner & command

Post by Klaus » Fri Aug 04, 2017 11:38 am

mrcoollion wrote:Niet echt... :wink:
:D :D :D

Post Reply