screen-resolution

Crossplatform way to change screen resolution

Is there any crossplatform way (Windows, Linux, MacOSX) to change screen resolution? Neither Java nor .Net-Mono can do it. Only through native API invocation. It's very strange situation: there are clear (managed) methods to obtain screen resolution, but method for setting is absent. Is this feature very dangerous or complicated? Does a...

Looking for Recommendation on Windows Forms .Net Resizing Component

By default windows forms resize logic is limited--anchoring and docking. In the past I've rolled my own custom resize logic when required. However, I'm getting started on a project that has a large number of very complex forms that must auto-resize to different resolutions. I don't care to invest a ton of time in resize logic. I see th...

How to list available video modes using C#?

I've found nice examples using C++ (http://www.codeproject.com/KB/tips/resswitch.aspx), but not in C#. Can someone help, please? Edit: The exact function that list the video modes is: BOOL CVideoModes::GetAvailableVideoModes(CAvailableVideoModes& modes) { modes.SetSize(0, 5); int i=0; DEVMODE dm; while (EnumDisplaySettings(NU...

What is the optimum resolution for a Silverlight Application?

I read and article talking about moving beyond 960px width for websites. This width is considered optimal since it is divisable by 3, 4, 5, 6, 8, 10, 12, 15, and 16 (no these aren't the Lost Numbers ;-) ) This helps in grid placement and this really doesn't apply to Silverlight apps but I started to wonder what would be optimal. What w...

Visual Studio - Grid Ruler for Winform Design

Hi, Is there a ruler addin for Visual Studio available which I can use to measure my winforms based on resolution. I am developing on a machine which has very fine resolution, however my end users have several resolutions, causing my app to not display correctly on some machines. This is for winform development. How do you guys handle s...

Windows Mobile: dealing with screen orientation and resolution

Hello! I want to deveplop an app for Windows Mobile 5.0 and above that can detect screen resolution and orientation. This part is easy, I know how to do it. The other part, reallocate controls process, is more difficult for me (not very difficult). I wonder if there is a design pattern or a design guideline about how to do this process...

Automatic image resizing in a CSS flow layout to simulate a html-table layout

I have an image that, depending on the screen resolution, drops down out of sight in my CSS flow layout because I have set its width and height to static values. Is there a way in a CSS flow layout to have the image automatically resize while someone is making the browser window smaller. I have seen this done in a html-table layout and...

How to programmatically get the resolution of a window and that of the system in Linux?

I'm trying to get the resolution of the screen as well as the resolution of a specific window (in which a program is running) on Linux system. I don't need to modify the resolution, I only need the current values. As far as I know, we can call some system functions to do so on Windows, how can we do that on Linux, preferably using C/C++ ...

Screen Resolution & Web Page Problems?

When I change my screen resolution to 800x600, 640x480 and so on half my web page gets cut off including images I cant even use the scroll bar at all to see the rest of the page, I'm using percentages as well as pixels using CSS. Need help fixing? All browsers are affected. Here is a sample. #top { background: #424ee0; margin: 0...

Web Pages Borders & Screen Resolution Problems

When I change my screen resolution my web pages main navigation bottom border magically shrinks half of my web pages length instead of going with the flow of the the web page. How can I fix this problem? The CSS is below. #main-nav { width: 100%; background: black; font-weight: bold; border-bottom: 5px solid blue; fl...

General Browser display statistics

I need to come up with some figures on browser display (resolution) statistics. Obviously there is W3 Schools, however they state that these are results from their site and is biased towards tech savvy users. Does anyone know of some stats that are more general in nature? They need to be credible. ...

C#: Get complete desktop size?

How do I find out the size of the entire desktop? Not the "working area" and not the "screen resolution", both of which refer to only one screen. I want to find out the total width and height of the virtual desktop of which each monitor is showing only a part. ...

What is the design best practice for setting the page width for mobile web pages?

Different browsers on different phones have different screen resolution. Is there a best practice in the community to set the width to a standard size, so that it works on most moderns phones and browsers? ...

How to check visible resolution of system

I am not entirely sure how to word this questions so I am just going to explain my problem. My VB 6 program saves the location of the screen in the registry so that when it loads up again it can have a default location. This works as expected, but I encountered a problem. I had a computer setup with 2 monitors. I dragged the window to t...

Visual Studio Windows Form Preview In Different Resolution?

I enjoy running Visual Studio in 1680 x 1050 resolution. However, our customers typically use 1024 x 768. Is there some way I can keep my editor in the native resolution but display the form designer in a different one? Thanks! Austin ...

iPhone Screen Resolution. 160 vs 163 vs. the future

I'm trying to make an app that displays something in real-world units. It's not a ruler app, but it wants that kind of precision. It already looks like the iPhone and iPod touch have different screen resolutions (160 & 163 respectively) I've found this http://stackoverflow.com/questions/610193/calculating-pixel-size-on-an-iphone and th...

Objective C - how to get current screen resolution?

Hi, is there any way to get the users screen resolution with objective c? Thanks. Solution: int width = [[NSScreen mainScreen] frame].size.width; int height = [[NSScreen mainScreen] frame].size.height; ...

How does Android define a screen resolution as long?

With Android, you can define different resources for different phone attribute by naming res directories appropriately. I need to be able to support different layouts for 480x800 and 480x854. I figured I could have one set of resources stored in the layout-hdpi-v4 directory and another in layout-long-hdpi-v4. However, both resolution ...

Netbeans, mobile development and screen size

Hi all, I'm looking at prototyping with a HTC Advantage, which runs Windows Mobile 5 and has a screen resolution of 640x480 (or the other way if in portrait). Before anyone jumps in and suggests developing as a native Windows mobile app, we're prototyping as a Java midlet because we also want to find out what restrictions/limitations/d...

Resolution independence in Android SurfaceView

I am currently starting a game engine in Android, first forray onto the platform and have the basics in place however i am unsure of the best way to approach resolution independence when using SurfaceView to draw graphics. Looking for pointers as to how to keep the game / sprites etc all looking the same independent of the screen, obvi...