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
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01017705
Message ID:
01017921
Views:
38
>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?

Hi Craig :)

I'm not sure about this, cos I haven't touch VFP9 yet. But have you try SetWindowPos? Or the one that I think will work with your case is BeginDeferWindowPos(), DeferWindowPos() and EndDeferWindowPos(). Unfortunately I can't experiment with it until I get my VFP9 (soon :) )

Regards
Herman
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform