ok, ezwindows is working fine. I just need to figure the following (see code below): if the window is define as being 8cm wide and 12cm high and at position (5,5). then surely if I have rect1 defined at x=1.0 and y = 1.0 and length of 6 and width of 8, then it should be right in the top left corner and as wide as the form and half its height. right? well its not.
its way off to the left (outside the left hand border of the form).I need to declare the rect(s) starting with xcoord = 3.0 for it to get even close to correct?
any ideas? thanks so long!
//code
SimpleWindow WindowMain("Question 1",8,12,(5,5));
int ApiMain()
{
WindowMain.Open();
RectangleShape Rect1(WindowMain,1.0,1.0,Red,6,8);
RectangleShape Rect2(WindowMain,1.0,7.0,Blue,6,8);
Rect1.Draw();
Rect2.Draw();
return 0;
}
int ApiEnd()
{
WindowMain.Close();
return 0;
}