orientation

Restrict images in scroll view to stretch when iPhone moved to landscape orientation

I have imageViews as content for in the UIScrollView. If a user is viewing a potrait picture (320x480) and moves the iPhone in landscape orientation - the image stretches to occupy full screen. I want to restrict the image to stretch. I want a functionality similar to the photos app where image is scaled down and shows black strips in le...

How do I lock the orientation to portrait mode in a iPhone Web Application?

I'm building a iPhone Web Application and want to lock the orientation to portrait mode. is this possible? Are there any web-kit extensions to do this? Please note this is an application written in HTML and JavaScript for Mobile Safari, it is NOT a native application written in Objective-C. ...

presentModalViewController for UIImagePicker fails in landscape mode for iPhone 3.0

First of all, my code isn't complex - in fact it's just two sample programs from "Beginning iPhone Development: Exploring the iPhone SDK", combined into one program. I took the ViewSwitcher application, which switches between a blue view and a yellow view, and replaced the YellowViewController with the CameraViewController from the camer...

iPhone dev - Manually rotate view

How can I manually rotate a view using the autoresizingMasks, as if the user had rotated the phone and it had auto-rotated. Also I want it to be instant, no animation. I you want to know why I need this, look at my other question at http://stackoverflow.com/questions/1219988/iphone-dev-keeping-interface-rotation. Thanks!! ...

UITabBarController, MoreNavigationController and the Holy Grail of Device Rotation

UPDATE: See my answer to this question first. This appears to be a bug. A minimal test case has been created and a report has been filed with Apple. (Fixed as of iPhone OS 3.1.) Greetings! Here's a puzzler from the "I'm so close!" department. I have a Tab Bar-based iPhone app. Each tab features a UINavigationController with the usual s...

Orientation Change needed but only for one of several views in TabBarViewController

My App has a UITabBarController with five tabs. I needed to rotate orientations only for the fifth tab. I was able to get all five to rotate to landscape by subclassing the UITabBarController @implementation TabBarControllerRotate (BOOL)shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation)interfaceOrientation { //return ...

Microsoft Office Document Image Writer cannot be programatically set to Landscape in VB6?

In our VB6 application, when the user's default printer is set to Microsoft Office Document Image Writer the following line of code causes the application to throw error number 380 (Invalid property value). Printer.Orientation = vbPRORLandscape If you are unfamiliar with what this line is doing, it is responsible for ensuring that the...

Windows form rotation

When you create a form in .Net it appears as a dialog box in a portrait layout. No one normally likes to read sideways, or upside down, but I have a very valid reason to rotate the form. Anyone knows how to do it on Windows Vista with C#? ...

ASP .NET Label orientation for East Asian Text

Does anyone know how to create an asp .net label control that is orientated in 90 degrees clockwise Right now the way I do it is using tag like this <td style="font-size: 13px; width: 20px; text-align: center; vertical-align: bottom;"> <asp:Label ID="lbl1" runat="server" Text="日" /><br /> <asp:Label ID="lbl2" runat...

How to disable orientation change in Android ?

I have an application that I just would like to use in portrait mode, so I have defined android:screenOrientation="portrait" in the manifest xml. This works ok for the htc magic phone. But I have a problem with the HTC G1 phone as i open the hardware qwerty keyboard (not the virtual keyboard). My activity stays in portrait mode, but se...

How to find which page orientation user selects in Rave (Delphi 7)

Is there a way to find which page orientation (poLandscape or poPortrait) user selects furing preview setup? I have tried this code: if RvSystem1.SystemPrinter.Orientation=poPortrait then ShowMessage('Portrait') else ShowMessage('Landscape'); But this code give "Portrait" even if I select Landscape from setup. Can anybody help? ...

IPhone how to properly resize view when rotating device

Hello, I have been trying to resize my view inside a view Controller with no luck so far. Basically I have a button at the very bottom of my view and when the orientation changes from Portrait to Landscape the button is no longer visible, because its just too far down now. How can I resize this view so that when the orientation changes...

CGImage create orientation less image.

Hi, I want to display an image on the display. Input images may be orientated. I can't go with CIImages as the images are raw images and it will take up huge amount of CPU and memory. So i tried out with the CGImage, With thumbnail creation it works fine, but with image creation it doesn't provide the orientation less image. NSDict...

How to print page 1 in portrait and page 2 in landscape in CRXI

I made a report in CR11. I want to print it as follows. Page 1 in portrait orientation and page 2 in landscape orientation. Is this possible? If it is, how do I do that. kind regards André ...

openGL position and orientation from modelview matrix

Hello! My problem is the following: I have nested object in my opengl scene, and i only know their relative position and orientation. How do I get the absolute position and orientation of the inner object? I' thinking of calculating the modelview matrix of the inner object, and after that i have the current matrix, but how do i conver...

Opinion Mining - What Database Type?

Hi guys, I am entering a project to make a Opinion Mining (Data Mining -> Web Mining -> Opinion Mining) to get semantic orientation of the words contained. We will use a crawler to get the pages opinion. Now the question is, what type of DataBase should I use (OO, Relational, hierachycal, etc), is best to use in this type of project. ...

UIToolBar and iPhone Interface Orientation Problem

I am developing an application in iPhone. One view support orientation in portrait and landscape. I have two separate views for both orientation. This view has a UIToolbar at the top. Problem is when I change view back from landscape to portrait, UIToolbar at the top disappears. I want toolbar to come back in its original position when ...

Iphone + main Window + orientation problem

Hello, I have MainWindow.xib in the application. In the Interface Builder, I rotate the main window from portrait to landscape and than put few UIControls on it. Than I save it. After that when I run the application although during design time I made everything in landscape mode, it always displays things in portrait mode. Please he...

TabControl.Orientation?

I wanna set a TabControl that its header are in the left side instead of on top, how do I do that? ...

strange MPMoviePlayer problem

I am using mpmovieplayer in my application.I have a button for playing movie witch has an image of play.But when mpmovieplayer plays movie i can see that button on movie player's overlying controlls like when i pause movie i see my play button instead of movie player's default button.Also i have customized navigation bar and i can see th...