Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Autosize programmatically
Message
De
23/07/1998 12:23:09
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
23/07/1998 12:19:33
Rex Mahel
Realm Software, Llc
Ohio, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00120363
Message ID:
00120528
Vues:
29
>Bruce,
>
>I am using it with ScreenLock on, so no jumping, but I have had to resort to multiplying the TXTWIDTH of the caption by FONTMETRIC(6) to get the Width.
>
>Hoped there was an easier way
>
>Thanks
>
>Rex
>
>>>>Is AutoSize for interactive change only, or do I need to do something else to make it work.
>>>
>>>Isn't autosize for bound controls? They autosize to fit the data field they are bound to?
>>
>>No, it generally works fine for things like label and checkbox captions -- I don't know why his isn't working (could it be a Wordwrap-related problem?). However, there's another problem with Autosize = .T. -- it can "jump" on the screen when it is reset the first time...
>>
>>Anyway, if Wordwrap is on, that can cause a conflict...
Rex,
This might not be easier but define your label class and in form.init replace it with your class. Autosize works true at init time so maybe you may try to just calling its again instead of replacing.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform