Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to send a particular char to the top of an editbox
Message
De
15/09/2004 22:03:47
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00942704
Message ID:
00942717
Vues:
13
Thanks, Sergey, but my question wasn't clear. The (readonly) editbox is only meant as a viewing mechanism for an ASCII file in which pages are separated by CHR(12), as replacement for report preview.

When user chooses page 3, etc, I want the editbox to show the corresponding page starting at the top of the editbox. Since I know which is the first char of each page (comes after CHR(12)), I have tried setting EditBox.SelStart = FirstCharPositionInPage, but that brings that char to the bottom of editbox, not the top.

Alex

>Try
EditBox.Value = <whatever> + EditBox.Value
>* or
>EditBox.SelStart = 0
>EditBox.SelLength = 0
>KEYBOARD "<whatever>"
>
>
>>
>>How do you place a particular character at the top of an editbox? For example, if EditBox.ControlSource = Thisform.cText, how do you place say char 2567 of Thisform.cText at the top of the editbox?
>>
>>If you set EditBox.SelStart = 2567, it will be shown in the last line of the edit box. One way may be to scroll the editbox, but how?
>>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform