Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating an autosizing editbox
Message
 
 
To
22/03/2005 14:26:40
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00998157
Message ID:
00998216
Views:
39
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform