Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ascii viewer, again
Message
De
20/09/2004 15:07:39
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
19/09/2004 00:44:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00943816
Message ID:
00944150
Vues:
22
>I am trying to create a ascii file viewer with buttons to move between pages, similar to report toolbar, but find difficulties.
>
>1) As you know, editbox does not have horizontal cursor, but instead wraps words, so you have to resort to reducing font size or using RFT box if text lines are long.
>
>2) If you change font size, Editbox.SelStart does not always send cursor to the bottom line in editbox. As a possible workaoround, is there a way to tell the position of cursor on screen in pixels from top of screen?
>
>3) If change to Rich text box in order to have horizontal cursor, moving between pages is complicated by RTF special chars.
>
>Does someone have a solution for this that would share?

Once in DOS times I had to do something like this, and the solution was to have a cursor with just one field, and show it in a bro... it would be a grid with nonproportional font now. FileToStr() the whole textfile, alines() it into an array, and then fill your cursor with the elements of the array. If your user wants to scroll right, refill your cursor with substr(a[i], 21) - to move 20 characters right, refresh the grid.

I think you got the idea, and can fill the details. I could dig out the original code, but they would be full of 2.6 workarounds for many things.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform