Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Resizing Docked Form's Height Programmatically
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Resizing Docked Form's Height Programmatically
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01017705
Message ID:
01017705
Views:
121
Here's the situation... say you've got two dockable forms that are docked on the left-hand side of the screen. One of them is docked right above the other one (stacked). Now, you can take your mouse and put it between the two forms and resize them simply by dragging either up or down... as one get taller the other gets shorter and vice versa. So now, how do you accomplish this through code. For instance, say both of the docked forms have an equal height of 300 and you want to decrease the height of one of them to 100 (which in turn would increase the other one to 500 in height) and you want to accomplish this all from code.

Here are the things that haven't worked:

1. Setting docked form's height property
2. Calling docked form's Move method
3. Attempting to resize the docked form by calling MoveWindow via API
4. Size Window command run against the form
5. Saving various aspects of the docked form's dock state, undocking the form, and then trying to redock exactly where it previously was after resizing it (this would have looked terrible anyways, but I had to try)

Any other ideas?
Next
Reply
Map
View

Click here to load this message in the networking platform