View Single Post
  #321 (permalink)  
Old 12-18-2007, 08:04 PM
colin9876 colin9876 is offline
Basic4ppc Veteran
 
Join Date: Nov 2007
Posts: 316
Awards Showcase
Beta Tester 
Total Awards: 1
Default

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

Last edited by colin9876 : 12-18-2007 at 08:15 PM.
Reply With Quote