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:
01017928
Views:
42
SetWindowPos, while it returns 1 gives some of the same odd behavior that I've mentioned before regarding MoveWindow. It does not however effect the size of the windows no matter how many different way I apply it to the situation (have tried it on the windows and also on the splitter bar windows that are around the docked forms). I will look into the Defer* APIs you have referred me to and get back to you.

An aside: It's interesting to note that these docked windows are actually toolbar windows.

What would be really nice is if someone from the MS VFP Team would chime in and just tell us what API calls to make in order to resize these docked forms. They obviously know what APIs they are using to make the splitter bars work to resize the forms via the mouse... would it be too much to ask just to tell us? <g> They didn't expose this functionality for them in VFP 9, so they must have a reason why they don't want us monkeying around with them like this.

>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform