Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating an autosizing editbox
Message
 
 
À
22/03/2005 14:26:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00998157
Message ID:
00998216
Vues:
40
This message has been marked as the solution to the initial question of the thread.
Malcolm,

>Any ideas appreciated!

Ok you said any ideas.. this does seem to work.

You can test to see if the scrollbar is active by using the thisform.Point() method. You can look to see if the up pointing triangle is black or gray. For example I put an edt on a form with a width = 138, left =-1, top = -1. debugout thisform.Point( 125, 8 ) will be 0 when it's black and thus enabled, or 8421504 when disabled.

Now these coordinate values will depend on your particular scrollbar metrics sysmetric() will help with this part. Themes probably play a part so you need to look for a change in value of the Point() than the actual values.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform