52.9 F
Los Angeles
Tuesday, November 19, 2024

Trump Lawyer Resigns One Day Before Trial To Begin

Joseph Tacopina has filed with the courts that he will not represent Donald J. Trump. The E. Jean Carroll civil case is schedule to begin Tuesday January 16,...

Judge Lewis A. Kaplan Issues Order RE Postponement

On May 9, 2023, a jury found Donald J. Trump liable for sexual assault and defamation. The jury awarded Ms. Carroll $5 million in damages. Seven months ago,...

ASUS Announces 2023 Vivobook Classic Series

On April 7, 2023, ASUS introduced five new models in the 2023 Vivobook Classic series of laptops. The top laptops in the series use the 13th Gen Intel® Core™...
HardwareTablet PCOption dialog with handedness

Option dialog with handedness

I’ve started adding more handedness support in my apps. One of the recent changes I’ve been experimenting with is adding left and right handed layouts for the options dialog.

Here’s the normal “mouse” layout I’ve been using to date:

OptionsDlgLeftHanded.gif

What I’ve discovered is that this traditional layout for an options dialog is fine for left handed pen users, but is a bit awkward for right handed users like myself.

The problem is that when I tap on the left list to select a new category my hand is occluding the property pages on the right.

To get around this problem I’ve started re-arranging the dialog controls when the user is right-handed. Here is how the options dialog appears for right handed users, for instance:

OptionsDlgRightHanded.gif

You can determine which handedness the current user has set, by calling SystemParametersInfo:

SystemParametersInfo(SPI_GETMENUDROPALIGNMENT, 0, &gfRightHanded, 0);

Here’s more from MSDN.

Loren
Lorenhttp://www.lorenheiny.com
Loren Heiny (1961 - 2010) was a software developer and author of several computer language textbooks. He graduated from Arizona State University in computer science. His first love was robotics.

Latest news

Related news

  1. It is definitely easier for right handed users. I wonder if it might impede work flow though (at least for English readers) since the tendency is for the eyes to focus at the top-left then scan right but that may just be a trained habit.

  2. I wondered about the left-to-right issue too, so that’s partly why I coded it up. I’ve been using it for awhile without a hitch, although I think what’s missing now is some type of graphical indication that the list is *here*. Right now, the list has about the same visual weight as the property pages on the other side. Particularly when the list is on the right side, I think some additional visual clue that says “pick here” would help. But after using the list this way for awhile, it helps to reduce the arm movement.