Jump to content
  • 0

mydisp.createButton not working properly in landscape mode


JeffJ

Question

Hi All,

I am using the uC32 and 2.8 inch MTDS board.  All works well in portrait mode. If I change to landscape mode the createButton routine will not create a button in the horizontal 240 to 319 region. It's like the createButton routine hasn't updated its max x,y screen dimensions with the landscape max values. Buttons created in the horizontal region < 240 render correctly and work correctly. I can render bitmaps in the 240 to 319 region using the mtds calls. What am I missing?  Thanks in advance.

Jeff

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Hi @JeffJ,

Are you able to write text in this >240 region? Otherwise, based on the MTDS Library Programmer's Reference Manual, the SetDisplayOrientation function describes that the portrait and landscape modes switch which sides (long and short) are the x and y axes. Did you also switch the axis for your create button function to account for this, since keeping the old y axis value on the new y axis (which is now shorter in landscape mode) would be attempting to render the button outside of the display area.

Thanks,
JColvin

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...