Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using Autosize programmatically
Message
From
23/07/1998 12:23:09
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
23/07/1998 12:19:33
Rex Mahel
Realm Software, Llc
Ohio, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00120363
Message ID:
00120528
Views:
27
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform