The Daily Click ::. Forums ::. Klik Coding Help ::. Resizing client area
 

Post Reply  Post Oekaki 
 

Posted By Message

DeadmanDines

Best Article Writer

Registered
  27/04/2006
Points
  4758
10th May, 2005 at 10:54:39 -

When I use the WindowControl object to retrieve the dimensions of the client window, it only updates when you've stopped resizing. This means that if you're making an application with a resizable window, the contents will only shrink/expand to fit the window once you stop resizing it.

This looks really really ugleh. Anyone found a way around it?

 
191 / 9999 * 7 + 191 * 7

Zane



Registered
  09/09/2003
Points
  1183
10th May, 2005 at 12:36:40 -

DINES!!! YOUR KLIKING AGAIN!!!

 
www.klikforever.co.uk
GO THERE!!!

Arf :: FPP Games



Registered
  15/05/2002
Points
  1364
10th May, 2005 at 13:56:49 -

I think this is a built in limitation of MMF, so there's no way around it. I'd love to be proven wrong though, because it is quite annoying!

 
n/a

DeadmanDines

Best Article Writer

Registered
  27/04/2006
Points
  4758
12th May, 2005 at 06:14:27 -

Lol, nah, this is just a program i need, so I figured I'd build it.


The only way I can think of to get around it is a pain - to switch off the window borders and do all the window controls manually through the events.

 
191 / 9999 * 7 + 191 * 7

SculptureOfSoul



Registered
  14/03/2005
Points
  52
13th May, 2005 at 04:35:07 -

I don't have a means to test this at the moment, but couldn't you store the X value (or X and Y) of the mouse when a user clicks and then determine how far the mouse has moved and resize things accordingly. Of course you'd need to add some code to determine if the user was resizing the window, but that shouldn't be that difficult. All you'd have to do is determine if the mouse was within "N" or less pixels of an edge, where N is the number of pixels away from the edge that the cursor changes and allows window resizing. Toggle a flag when the user is resizing, and while that flag is on force all of your contents to resize.

Just an idea. Let me know if you try this and it works?

 
Current Project: Undertaking the design of my mammoth RPG. Utilizing all of the knowledge gained while coding the now defunct "Shadow Reign".

DeadmanDines

Best Article Writer

Registered
  27/04/2006
Points
  4758
14th May, 2005 at 12:22:06 -

Yeah, I'm trying a system to do the window resizing via events, and that's how it works. Very slow though.

 
191 / 9999 * 7 + 191 * 7
   

Post Reply



 



Advertisement

Worth A Click