user-interface

Using the Window API, how do I ensure controls retain a native appearance?

Some of the controls I've created seem to default to the old Windows 95 theme, how do I prevent this? Here's an example of a button that does not retain the Operating System's native appearance (I'm using Vista as my development environment): HWND button = CreateWindowEx(NULL, L"BUTTON", L"OK", WS_VISIBLE | WS_CHILD | BS_PUSHBUTTON, ...

iPhone application : is-it possible to use a "double" slider to select a price range

I'm working on an iphone application (not web app) and I'd like to build a form asking a user to indicate a price range. Instead of using two text fields, I would prefer to use a double slider to set the minimum and the maximum price. I know that it is possible de use a simple slider (sound control for exemple) but i've never seen a dou...

Java User Interface Specification

Java supplies standard User Interface guidelines for applications built using Java Swing. The basic guidelines are good, but I really feel the look and feel is really boring and outdated. Is anyone aware of a publicly available Java User Interface Guide that has better look & feel guidelines than the Sun provided guidelines? ...

Hiding toolbar / status bar with javascript in CURRENT browser window?

Is there some way to hide the browser toolbar / statusbar etc in current window via javascript? I know I can do it in a popup with window.open () but i need to do it this way. Is it possible at all? ...

Editable data grid for C# WinForms

I need to present the user with a matrix of which one column is editable. What is the most appropriate control to use? I can't use a ListView because you can only edit the first column (the label) and that's no good to me. Is the DataGridView the way to go, or are there third party alternative components that do a better job? ...

How do you implement position-sensitive zooming inside a JScrollPane?

I am trying to implement position-sensitive zooming inside a JScrollPane. The JScrollPane contains a component with a customized 'paint' that will draw itself inside whatever space it is allocated - so zooming is as easy as using a MouseWheelListener that resizes the inner component as required. But I also want zooming into (or out of) ...

Bad UI Design? Having two logos on the top left of the website?

Well i am currently working on a project doing some UI mockups when certain users wanted to have two logo on the top left ot the website. One is to indicate what is the website about then another is to indicate that this website is actually belong to this particular sector. I thought that UI design wise this is very bad because two logo...

Error Message Text - Best Practices

We are changing some of the text for our old, badly written error messages. What are some resources for best practices on writing good error messages (specifically for Windows XP/Vista). ...

How do you design a website to make the best use of ads?

Is anyone aware of general UI design guidelines for increasing ad revenue from web ads? Obviously many SO users use adblock, and probably find this type of question reprehensible, but I believe that it is possible to integrate advertising (and other revenue streams) into sites so that they are visually appealing, on-target, and functiona...

Is there ever a good reason to force opening a new browser window?

As a power web user, I know how to use my browser and it drives me nuts when web sites force me to open a new page. My mother, by contrast, just gets confused when this happens. At the end of a web session, she closes the current browser window and wonders where all these other browsers came from. Some companies I've worked with have ...

Position the caret in a MaskedTextbox

I would like to be able to override the default behaviour for positioning the caret in a masked textbox. The default is to place the caret where the mouse was clicked, the masked textbox already contains characters due to the mask. I know that you can hide the caret as mentioned in this post, is there something similar for positioning ...

How would you organize a timezone dropdown?

I'm trying to present the (web) user with a useful subset of Olson timezones, though with a friendlier naming convention. Any recommendations for how to sort and label them for maximum usefulness? By country? Continent? GMT offset? I'm not very concerned about inaccuracy for past dates, so some of the timezones that are only histori...

Slow treeview in C#

I have a legacy application that is written in C# and it displays a very complex treeview with 10 to 20 thousand elements. In the past I encountered a similar problem (but in C++) that i solved with the OWNERDATA capability offered by the Win32 API. Is there a similar mechanism in C#? EDIT: The plan is to optimize the creation time as...

For list controls, should find-as-you-type match at the start of an entry, or anywhere in an entry?

I have a list control in GTK+ (a gtk.TreeView with one column), with "find-as-you type" enabled (so typing any text will open a small search field for searching through the list entries). Now, if the user enters some search text like "abc", should I search only for entries starting with "abc", or should I search for entries that contain ...

opening links in the same window or in a new (tab)

It has always been best practice to open links in the same window. Should that still be the rule now that most common browsers use tabs? Personally i prefer closing a tab/window over hitting the backbutton. What are your thoughts? ...

Who is responsible for your UI / User Experience?

Looking for input from all, though mostly interested in small engineering teams / small companies (10 - 20 people) that develop web applications: Who is responsible for the overall look and feel of your UI (i.e. setting standards)? Is this person a dedicated resource or does he / she have other responsibilities? What type of backgrou...

How would you handle users who don't read dialog boxes?

A recent article on Arstechnica discusses a recent study performed by Psychology Department of North Carolina State University, that showed users have a tendancy to do what ever it takes to get rid of a dialog box to get back to their task at hand. Most of them would click ok or yes, minimize the dialog, or close the dialog, regardless ...

How do I set the UI language in vim?

I saw this on reddit, and it reminded me of one of my vim gripes: It shows the UI in German. Damn you, vim! I want English, but since my OS is set up in German (the standard at our office), I guess vim is actually trying to be helpfull. What magic incantations must I perform to get vim to switch the UI language? I have tried googling on...

Variable UITableCellView height with subview

Hi everyone, I want to create a UITableView with varying row heights, and I'm trying to accomplish this by creating UILabels inside the UITableViewCells. Here's my code so far: - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *MyIdentifier = @"EntryCell"; UITabl...

User Interface - Dropdown

What is the best way to design an interface so that very long drop down values that get trucated due to size limits do not create a very bad user experience. My question is for web applications. Could you please send your suggestions. Thanks. ...