Hi eko:

I made a change to ResEdit to fix a problem with
painting frames.

Could you test ResEdit again to see if everything
still paints ok on your XP machine.

Thanks,

Ewayne
Posted on 2002-02-17 16:28:15 by Ewayne
it paints ok


but when you move an item the mouse is faster than the
Rectangle

how do you draw the rectangle?

bye

eko
Posted on 2002-02-18 08:01:11 by eko
To eko:

In the previous ResEdit was the mouse faster then
the rectangle?

To draw a Frame (transparent rectangle):

1. Draw a Static control.
2. Change the Static control style to either
SS_WHITEFRAME, SS_GRAYFRAME, or SS_BLACKFRAME.

To draw a Rectangle (filled rectangle):

1. Draw a Static control.
2. Change the Static control style to either
SS_WHITERECT, SS_GRAYRECT, or SS_BLACKRECT.

Thanks,

Ewayne
Posted on 2002-02-18 08:26:16 by Ewayne
am...
yes in the previous ResEdit the mouse was faster i guess i didnt notice that
...
maybe you should draw the rectangle with
Rectangle api


BOOL Rectangle(

HDC hdc, // handle of device context
int nLeftRect, // x-coord. of bounding rectangle?s upper-left corner
int nTopRect, // y-coord. of bounding rectangle?s upper-left corner
int nRightRect, // x-coord. of bounding rectangle?s lower-right corner
int nBottomRect // y-coord. of bounding rectangle?s lower-right corner
);


bye

eko
Posted on 2002-02-19 08:29:52 by eko
This might be silly, but have you the clipchildren style set? I've only ever noticed delayed drawing of controls when clipchildren wasn't set.
Posted on 2002-02-19 08:36:37 by Eóin
To eko:

I misunderstood you when you asked how do you draw
the rectangle, I though you wanted to know how to
change a Static control into a rectangle.

I've drawn the sizing rectangle probably every
way that you can think of.

How the rectangle is drawn is not issue, I'm
satisfied with the way it's being drawn.

So far you're the only one thats said that the
mouse is faster then the rectangle movement.

How fast are you moving the cursor?

Even on my machines if I really whip the cursor
accross the Forms window I can out pace the
rectangle.

I've taken the WS_CLIPCHILDREN style out of the
Form control to fix the painting a Frame problem
I'll put it back in and send you another test to
see if that fixes your speed problem.

If that fixes your speed problem, then after a
user moves or sizes a control I'll have to check
every control to see if it is a Frame and if it is
I'll have to repaint that control.


Thanks,

Ewayne
Posted on 2002-02-19 10:07:14 by Ewayne
To E?in:

I can see that not having the WS_CLIPCHILDREN
style on the Forms window might slow down the
movement of the controls, but it doesn't seem
to make any difference on both of my non XP machines.

I removed the WS_CLIPCHILDREN style from the Forms
window to fix another problem.

I'm putting it back in for eko to test.

Thanks,

Ewayne
Posted on 2002-02-19 10:16:04 by Ewayne