Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

User resizing of controls at run time. 11

Status
Not open for further replies.
Not that I can think of off the top of my head. I'm wondering if the resize event is being started again before you can finish your calculations to resize the other windows for the first time it was called. Are you using a DoEvents statement anywhere in your resize code?

Does the sample program I gave you above work on the other machine in your office ( the one that has the show contents while dragging option selected )?

Robert
 
Hi again Robert,

In answer to you questions;
I am not using a doevents anywhere - do you think I should use it? I'm not clear on why this would interfere with trapping the mouse clicked event but I'm willing to try any ideas you have. I'll post up my code if its any help but it is very long.

Your sample project works on both of the machines. There is a difference though in that you have specific code for each resize event of each frame where as I am creating the frames on the fly as the user creates the splitters. The frames are all named the same and are in an array so that all the calculations are withing the same resize event.

As I say - you are welcome to see the full source for the project if you like. I could post it here or email you the project itself. Its so close now that its frustrating that this stumbling block exists.

Again thanks in advance for any help you can give
John B
 
Hello John,

As for the DoEvents statement, I would not recommend using one. Just checking to see if you were. It would interfere with the resize events, and cause multiple events to be triggered before they could be properly handled.

Robert
 
Thats gone to you now Robert.

Thanks
 
OK, consider this thread closed. I'm going to write a FAQ on it.

Robert
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top