General information
Category:
Forms & Form designer
>>>>>>I am trying to allow users to resize a pageframe. I know a form is resizable but I would like to do the same to certain controls. Is there any way I can do this?
>>>>>
>>>>>Try the resize class from the Files section.
>>>>I didn't mention that I am working in VFP 3.0. I'm not familiar with the Files Section. Can you be more specific.
>>>
>>>There is also of version of resize for Visual FoxPro 3. Just click on the Files icon, proceed with Classes and lock for AutoResize.
>>
>>I would like the users to have the ability to resize a control at run-time. AutoResize won't do the trick. I am looking for the same affect as a form's borderstyle = 3-Sizable but for a control like a pageframe. So the user can take their mouse and resize the pageframe on a form at run-time.
>
>This case you have to code this yourself using following ideas:
>1. Pageframe.Click/DblClick event: toggle add/remove couple blackened dots (line or label) on pageframe border to indicate that resizing available (use Form.AddObject/Removeobject).
>2. Added 'dots' should have DragMode=1 to allow moving.
>3. 'Dots'.DragOver events should fire code which will resize (change Left\Top\Width\Height properties) of the pageframe, depending on what 'dot' is dragging.
Thanks for your help! This is exactly what I needed.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only