
I have looked through the threads and I cannot find how to simply get a value of x and y to represent the device's physical screen size. I need to do such as this:
x = devicescreen.width
y = devicescreen.height
I need (as others have also mentioned) these x and y values (which will change from device to device) to allow me to place objects at calculated places on the screen, always taking into account the various screen sizes and always using the same program - not having to recompile for device to device.
I have read that the 'Forms are always maximized to the physical screen size.' but when I compiled a program (on the PC) set for 320 x 240 and then placed this application on to my i780 (which is 320 x 320), the value of the i780's form.height and form.width returned the original compiled screen size and not the new value of the i780 (and vice versa occurs).
However, if I do not compile the application on the PC and run the program via Basic4ppc directly on my i780, the form.height/width is being returned correctly.
So the form.height/width only appears to be returned correctly for device to device when running a non-compiled program via Basic4ppc.
Since everyone else seems to be able to get various device's physical screen size (using the same application and not having to compile for each device) I must be missing something for which I apologize.
I hope that someone can assist me.