Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to know if edit box scrollbar is visible ????
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00471757
Message ID:
00471820
Vues:
17
Hi!

Use memlines() function, with word wrap option use SET MEMOWIDTH command to set width of memo line to appropriate value for edit box. Than multiply number of lines to height of editbox font (you can get it using FONTMETRIC( ) function). If result number more than height of edit box - scroll bar is visible.

>Hi all,
>I have an editbox owner class based on container with some addins. This control is sizeable and have a picture (like a down arrow) to indicate that more text exist when the control was sized to one row.
>I need to know if the scrollbar is visible to make this picture invisible (because the user have the scrollbar to know that more text exists)
>
>Thanks in advance
>Esteban
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform