Noooo,
We want it 2 work for all resolutions, landscape or portrait.
So everything on the top or the left can stay hardcoded on the form
Things to the left and bottom need to be moved RELATIVE to the sreen dimensions
SO as I said, as MaxX is always set at 30 less that the screen width
Rpanel.left=MaxX will put the right panel 30 before the edge whatever Res is on
water.left = MaxX+5 will always put the icon 5 pixels right of the Rborder
sand.left=MaxX+5
Res.Top=MaxY+10
Draw.Top=MaXY+10
Draw.Left=MaxX/2 (if u want it halfway along)
Add this code, stop the program, change ur pda to landscape or landscape and rerun it to check it looks right either way!
Sub ScreenSet
water.left = MaxX+5
sand.left=MaxX+5
Res.Top=MaxY+10
Draw.Top=MaXY+10
Draw.Left=MaxX/2
Rpanel.left=MaxX
toppanel.width =(MaxX-MinX)
lowerpanel.width=(MaX-MinY)
bottomline.width=burningsands.width 'full length for the bar at bottom of screen
etc
We want it 2 work for all resolutions, landscape or portrait.
So everything on the top or the left can stay hardcoded on the form
Things to the left and bottom need to be moved RELATIVE to the sreen dimensions
SO as I said, as MaxX is always set at 30 less that the screen width
Rpanel.left=MaxX will put the right panel 30 before the edge whatever Res is on
water.left = MaxX+5 will always put the icon 5 pixels right of the Rborder
sand.left=MaxX+5
Res.Top=MaxY+10
Draw.Top=MaXY+10
Draw.Left=MaxX/2 (if u want it halfway along)
Add this code, stop the program, change ur pda to landscape or landscape and rerun it to check it looks right either way!
Sub ScreenSet
water.left = MaxX+5
sand.left=MaxX+5
Res.Top=MaxY+10
Draw.Top=MaXY+10
Draw.Left=MaxX/2
Rpanel.left=MaxX
toppanel.width =(MaxX-MinX)
lowerpanel.width=(MaX-MinY)
bottomline.width=burningsands.width 'full length for the bar at bottom of screen
etc
Last edited: