Page 1 of 1

PostPosted: Thu Sep 15, 2005 3:36 am
by exit_head
here is the code im using right now:

if(penx()==160 && penx()==160)drawmode=NORMAL;

i use it to detect the form orientation. but it never gets set to WIDE or TALL(hires+) and i cant figure out why. from looking at the "Resize.pc" example it seems that the width and height is returned with penx() and peny(), is this correct?

Thanks for your help
Nate Edwards

PostPosted: Tue Sep 20, 2005 2:32 pm
by dewey
The wide and tall modes aren't actually 240 pixels - they are 240 pixels minus the spaces taken by the control bar. Check for penx() > 160 instead.

PostPosted: Tue Sep 20, 2005 10:16 pm
by exit_head
thanks dewey :) all running smoothly now