Hi,
A program is originally written in portrait mode. When loaded, it investigates the formwidth/formheight relation and, if found that the device is in landscape mode, it rearranges a couple of objects.
The form itself, however, now has two colors;
On the device: the left part, roughly the width of the form in portrait mode, has the correct color, the 'added ' width part is grey;
On the desktop: the left part, roughly the width of the form in portrait mode has become green, the 'added ' width part is grey.
Nowhere in the program the color green is used.
Setting the Form color, after rearranging the objects has no result.
In portrait mode everything is OK.
Reacting on the Resize event, caused by using a hardware button, gives consistently the same results.
Who knows what I am doing wrong?
Harry
A program is originally written in portrait mode. When loaded, it investigates the formwidth/formheight relation and, if found that the device is in landscape mode, it rearranges a couple of objects.
The form itself, however, now has two colors;
On the device: the left part, roughly the width of the form in portrait mode, has the correct color, the 'added ' width part is grey;
On the desktop: the left part, roughly the width of the form in portrait mode has become green, the 'added ' width part is grey.
Nowhere in the program the color green is used.
Setting the Form color, after rearranging the objects has no result.
In portrait mode everything is OK.
Reacting on the Resize event, caused by using a hardware button, gives consistently the same results.
Who knows what I am doing wrong?
Harry