Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. sponsors. rss.
 From: Yousfi Benameur
  Where is Yousfi Benameur?
 El Bayadh
 Algeria
 Yousfi Benameur
 To: Danson Danson
  Where is Danson Danson?
 Nairobi
 Kenya
 Danson Danson
 Tags
Subject: RE: Scrolling text
Thread ID: 233439 Message ID: 233586 # Views: 36 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Forms
Date: Friday, July 03, 2009 7:04:33 PM         
   


> Hi all,
> Can any one give me a code that will create scrolling text on a form
>
> Thanks


you can do that with a browser on a form.try this code
yform=createObject("ymarquee")
yform.show()
read events

DEFINE CLASS ymarquee AS form
	Top = 109
	Left = 198
	Height = 343
	Width = 384
	ShowWindow = 2
	Caption = "SCrolling in a browser"
	MaxButton = .F.
	Name = "Form1"

	ADD OBJECT olebrowser AS olecontrol WITH ;
	OLECLASS="Shell.Explorer.2",;
		Top = 36, ;
		Left = 24, ;
		Height = 157, ;
		Width = 288, ;
		Name = "OleBrowser"

	ADD OBJECT edit1 AS editbox WITH ;
		Height = 73, ;
		Left = 48, ;
		Top = 204, ;
		Width = 229, ;
		Name = "Edit1"

	ADD OBJECT command3 AS commandbutton WITH ;
		Top = 288, ;
		Left = 98, ;
		Height = 25, ;
		Width = 109, ;
		Caption = "SCROLL V", ;
		Name = "Command3"

	PROCEDURE edit1.Init
		this.value="VISUAL FOXPRO IS VERY COOL !<br>FOXITE.COM IS A WONDERFULL VISUAL FOXPRO FORUM"
	ENDPROC

	PROCEDURE command3.Click
		mytexte=thisform.edit1.value
		apIE=thisform.oleBrowser
		apIE.navigate("about:blank")
		do while apIE.busy or apIE.readystate#4
		enddo
		xx=';
		 '+myTexte+;
		 ''
		apIE.document.body.scroll="no"
		 apIE.document.body.innerHtml=xx
	 
	ENDPROC
   
    PROCEDURE DESTROY
    clea events
    ENDPROC

ENDDEFINE

you can also do this code easyly with horizontal scroll.

Dont rate please.its only for the pleasure to help.Give me only a feed back.
Yousfi Benameur



COMPLETE THREAD
Scrolling text Posted by Danson Danson @ 7/2/2009 4:11:31 PM
RE: Scrolling text Posted by Stefan Wuebbe @ 7/2/2009 4:15:40 PM
RE: Scrolling text Posted by Boudewijn Lutgerink @ 7/2/2009 4:16:58 PM
RE: Scrolling text Posted by Danson Danson @ 7/4/2009 12:09:43 PM
RE: Scrolling text Posted by Bernard Bout @ 7/3/2009 1:58:26 AM
RE: Scrolling text Posted by Glen Villar @ 7/3/2009 3:15:46 AM
RE: Scrolling text Posted by Danson Danson @ 7/4/2009 12:58:44 PM
RE: Scrolling text Posted by Yousfi Benameur @ 7/3/2009 7:04:33 PM
RE: Scrolling text Posted by Mike Gagnon @ 7/4/2009 12:58:48 PM