Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form - resize rubber band
Message
From
21/09/2004 14:43:24
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00944495
Message ID:
00944685
Views:
18
>Some of my clients obviously have problems hitting the right lower corner of a form's border in order to resize it.
>
>So I have written a small class that sits in the lower right corner and shows the small dots, to extend the "resize-sensitive-area" just like in Internet-Explorer or the VFP-editor. Works perfectly well but the behaviour is not the same.
>
>Hitting the border with the mouse displays the resize-rubber-band, and only this is used until mouseUp. After that the actual resize of the form is done.
>
>with my class however I'm not (yet) able to set the form in this "hey, I'm being reszied"-mode. However I have two options. Either resizing the atual form with every movement of the mouse (works but produces ugly intermediate bordershadows) or resizing upon MouseUp (not too intuitive as the intermediate states are not visualized).
>
>Anyone an idea how to either "activate" and use the form's rubber or to mimic the behaviour (I think what actually needs to be done is place an invisible form on top and paint the rubber)?
>
>Thanks for any help - If this becomes a nice working solution I'll post it in the download-area
>
>Frank


Hi Frank,

How about drawing a rectangle (Rectangle() API) on MouseDown, continue drawing it on MouseMove. Then do the actual resize on MouseUp. I think it looks good enough

Regards
Herman
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform