Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Scrolling through a typed text ?
Message
De
19/11/2009 19:38:39
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01435706
Message ID:
01435709
Vues:
65
>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"
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform