Switching landscape and portrait

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • Switching landscape and portrait

    Dear All,

    I'm newbie and I would like to implement landscape/portrait switching, please guide me!
    My simple task is like this:
    [img]http://www.segger2.com/data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARwAAACYCAIAAAC5wMHNAAAIKUlEQVR4nO3dL5LiWhiG8SylTapGsgAEcmRnB1RlC4hxqKMxqWqJQIxGjcwG4rui2gU5ggXkiu/OqTOBl+/S0N3UPc+j+JMEpprfJDlJoNhsNgsStW070kmvr69f/Zd53H78+FEsFovNZtPSScvlcr1ef/UH+BHbbrffv3//6r/PI/bz58+np6diwf/HovV6Daqzbbfb5XL51e/iEXt7ewPVpUClyhbV8XjszhUnmKJq27ZpmnT+9G5a0zTH49HWdxfegU1mtycLT59y57VCCPau7MYnBCpVtqiappn/qSgKu1FVVZxgiiqEMJ/P49Nd16V30+bzedd1IYTLn++6riOkuq7LshyGwe6WZXn53dtLpI/YLF3XufPeK1CpskWVdvZzeAWqYRi6ruv73u6eopqsBK3dblfXdZxltVrtdrvJkiczHo/Hvu+HYYio7KWHYQDV4wSq8SpUcTNxt9vZR99uhBCqqjIVE1QGZrVazefzdJvNbIzj2Pd9VVVt25qxEIKtwSYzGjZ70F6ibduyLO2lIyq1/rx7oFKBavzvqMqynP+dzWzrqOPxaAtKUTVNs1qtbIkhhHjbms/nwzCEEExjnL3v+9MZUzD2ElVV7ff79KVB9QhliyodqCjL0h+oUJt/5d/Z4xFV/NyP5z7xq9WqbVujNf6hYjxOZzxFle5Zxd3BdL/wQwOVKltU6UBF7D0DFelqzj7iKap0zyrdibJsky8utmmauq7jRuBkxsuo4lOR4kcHKlW2qNz+K6rVamWfeGM6/o2q7/uyLPf7ve3/nA6yl2UZN/NsYtsUPJ3xFNV+v7cbTdOY7QsD/XcPVKqcUcWVVV3XcTQ7dsVxKtv/Se+mx6n6vjdgZw9bNU0Thw3HcQwhxMGMyYyTV7TJ9vu97ZIZRVA9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+ezH+hHQGVry5eXl8Ph8I5/IKhUoHJ6N6qY0vVVm383WoqBSgUqp9tRxSa6Ph/VXSzFQKUCldMdUcVM190Xq9psNne0FAOVClROH4Hq/xGoVKByApUKVCpQOYFKBSoVqJxApQKVClROoFKBSgUqJ1CpQKUClROoVKBSgcoJVCpQqUDlBCoVqFSgcgKVClQqUDmBSgUqFaicQKUClQpUTqBSgUoFKidQqUClApUTqFSgUoHKCVQqUKlA5QQqFahUoHIClQpUKlA5gUoFKhWonEClApUKVE6gUoFKBSonUKlApQKVE6hUoFKByglUKlCpQOUEKhWoVKByApUKVCpQOYFKBSoVqJxApQKVClROoFKBSgUqJ1CpQKUClROoVKBSgcoJVCpQqUDlBCoVqFSgcgKVClQqUDmBSgUqFaicQKUClQpUTqBSgUoFKidQqUClApUTqFSgUoHKCVQqUKlA5QQqFahUoHIClQpUKlA5gUoFKhWonEClApUKVE6gUoFKBSonUKlApQKVE6hUoFKByglUKlCpQOUEKhWoVKByApUKVCpQOYFKBSoVqJxApQKVClROoFKBSgUqJ1CpQKUClROoVKBSgcoJVCpQqUDlBCoVqFSgcgKVClQqUDmBSgUqFaicQKUClQpUTqBSgUoFKidQqUClApUTqFSgUoHKCVQqUKlA5QQqFahUoHIClQpUKlA5gUoFKhWonEClApUKVE6gUoFKBSonUKlApQKVE6hUoFL9i+r5+bkg0Xa7/eo/0yPWtu1X/2Uet9ls9g+e8C4lUN/bmAAAAABJRU5ErkJggg==[/img][img]data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARwAAACYCAIAAAC5wMHNAAAIKUlEQVR4nO3dL5LiWhiG8SylTapGsgAEcmRnB1RlC4hxqKMxqWqJQIxGjcwG4rui2gU5ggXkiu/OqTOBl+/S0N3UPc+j+JMEpprfJDlJoNhsNgsStW070kmvr69f/Zd53H78+FEsFovNZtPSScvlcr1ef/UH+BHbbrffv3//6r/PI/bz58+np6diwf/HovV6Daqzbbfb5XL51e/iEXt7ewPVpUClyhbV8XjszhUnmKJq27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UClQpUTqBSgUoFKidQqUClApUTqFSgUoHKCVQqUKlA5QQqFahUoHIClQpUKlA5gUoFKhWonEClApUKVE6gUoFKBSonUKlApQKVE6hUoFKByglUKlCpQOUEKhWoVKByApUKVCpQOYFKBSoVqJxApQKVClROoFKBSgUqJ1CpQKUClROoVKBSgcoJVCpQqUDlBCoVqFSgcgKVClQqUDmBSgUqFaicQKUClQpUTqBSgUoFKidQqUClApUTqFSgUoHKCVQqUKlA5QQqFahUoHIClQpUKlA5gUoFKhWonEClApUKVE6gUoFKBSonUKlApQKVE6hUoFL9i+r5+bkg0Xa7/eo/0yPWtu1X/2Uet9ls9g+e8C4lUN/bmAAAAABJRU5ErkJggg==[/img]

    Thanks for your time!
  • Dear Adrian,

    Thanks for your reply!

    Moreover, I would like to switching the window, graphic,... as well, currently if I'm not wrong, I see that we can just select one direction at a compile time, can we do it on run time? Please guide and correct me, if I am wrong!

    Thanks for your time!