Oops, I seem to be stuck in a loop.
When I run my compiled and optimised application on a TyTn it returns the form width/height as per the TyTn (which is no surprise as the form was originally set up as per that size).
When I put the same compiled application on my i780 it is not returning the correct form size for the i780. In fact, the form is only being drawn small as per the original TyTn size. Because I am not detecting a larger screen size I am not able to do different placements of items to match the available space.
However, when I put the uncompiled program on the i780 and run it using the run command from Basic4ppc then it does exactly as you say - it automatically resizes the form to match the i780 screen and returns the correct larger size, which I can then use to scale placements of items.
What I am trying to do is get the above correct returning of screen size but when running a final optimised compiled program.
Since you have repeated that this should be case I must be doing something wrong.
Does anyone have an example of a 2 liner compiled program which will simply display the device's screen size in a message box. I could then run it on a TyTn and then on my i780 to check it returns the correct values and my setup.
Apologies again, but as I said, I seem to going round in circles as I am not getting the results you say I should.
Thanks