Yes, you can change the orientation in run time. Here is an example code snippet:

gfx_Set (SCREEN_MODE, LANDSCAPE); // Other Options: PORTRAIT, LANDSCAPE and PORTRAIT_R

See – the ‘Internal Functions Reference Manual’ document for more details, there is a different manual for each of the 4D Processors, so open the one that matches the processor you have.