apaschouch
Registered
Hello,
I try to execute my application build by "Project builder".
If I wanted to draw a rectangle in Classic environement, I did like this :
SetPort((GrafPtr) Dlg);
PenSize(3, 3);
InsetRect(&r, -4, -4);
FrameRoundRect(&r, 16, 16);
Now, I changes some things so that it compiles with Project builder. So the lines are now :
SetPort (GetWindowPort(Dlg));
PenSize(3, 3);
InsetRect(&r, -4, -4);
FrameRoundRect(&r, 16, 16);
The result is that my round rectangle is not drawn in my dialog, but it is drawn in the screen graphic port. Why ? What's wrong in the new code ?
Thank you for any help.
I try to execute my application build by "Project builder".
If I wanted to draw a rectangle in Classic environement, I did like this :
SetPort((GrafPtr) Dlg);
PenSize(3, 3);
InsetRect(&r, -4, -4);
FrameRoundRect(&r, 16, 16);
Now, I changes some things so that it compiles with Project builder. So the lines are now :
SetPort (GetWindowPort(Dlg));
PenSize(3, 3);
InsetRect(&r, -4, -4);
FrameRoundRect(&r, 16, 16);
The result is that my round rectangle is not drawn in my dialog, but it is drawn in the screen graphic port. Why ? What's wrong in the new code ?
Thank you for any help.