How can I capture a tablet form in Delphi XE2?
I have a problem. I am creating a full screen form in Delphi XE2. Then I run the app on a tablet pc with windows 7 on board, where the screen resolution is 1024x600. Then I rotate the tablet (now the resolution is 600x1024) and I am having problems with the elements on the form (some buttons are behind the screen, etc.). Can I set up my project so that my shape doesn't rotate when I rotate my tablet?
source to share
According to this MSDN article, you may find that the screen has been rotated while listening WM_DISPLAYCHANGE
.
However, you are facing a serious problem. Now you need to draw the entire application rotated 90 degrees. It will take a long time. To be honest, I don't think this is an acceptable solution. I suspect viable options are:
- Change your program so that it works in both orientations, or
- Set up your device to always be in your preferred orientation.
source to share