• 0
Sign in to follow this  
JeffJ

mydisp.createButton not working properly in landscape mode

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

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this