Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Scrolling through a typed text ?
Message
From
19/11/2009 19:38:39
 
 
To
19/11/2009 18:58:57
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01435706
Message ID:
01435709
Views:
69
>Is there a way to allow scroll through a typed text in a window.
>
>In a manner similar to [modify file sample.txt] where you can scroll through a text -
>
>i would like to open a window (outside the VFP screen) that will allow the operator to scroll the text - I need a scroll bar to be generated int he window. The contents of the text will be variable depending on the selection but cannot be fully housed in a window without scrolling.
>
>My problem is that the 'type' command simpy types the full message and the upperpart of the message disappears as the type process continues past the window constraints. In this case filetostr will not work for me as the text is formatted to display aligned schedules.
>
>DEFINE WINDOW bmsched5 zoom GROW close SYSTEM;
>FONT 'lucida console',6 ;
>STYLE 'n' ;
>in desktop ;
>FROM 0,140 TO 55,222 ;
>
>activ window bmsched5
>TYPE "sampe formatted text"
>
>activate screen
>
>thanks
>
>k

What version of foxpro are you using? Can you use an editbox on a form? You can use filetostr() and then display it in the editbox.
See:
http://msdn.microsoft.com/en-us/library/aa689090(VS.71).aspx
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Reply
Map
View

Click here to load this message in the networking platform