Oh, and also, I just tried your code, it seems like the compiler can't find BeginOrtho and EndOrtho... are they your own procedures?