How to allow user to check a dialog checkbox with the keyboard?

Hi all,

How:

- Do you allow a user to check a check box, shown inside a dialog, by hitting a simple keystroke (instead of forcing the user to use the mouse).

- Ensure that the check box is inside the list of items you can navigate using the TAB key.

The wxWindows doc on wxCheckBox does help much. The styles don't seem to control that either.

The wxDialog overview says: "Extra functionality is automatically given to the dialog box, such as tabbing between items (currently Windows only). " but that does not help much.

Where else should I look?

Thanks

Pierre

Pierre Rouleau wrote:

Hi all,

How:

- Do you allow a user to check a check box, shown inside a dialog, by hitting a simple keystroke (instead of forcing the user to use the mouse).

- Ensure that the check box is inside the list of items you can navigate using the TAB key.

The wxWindows doc on wxCheckBox does help much. The styles don't seem to control that either.

The wxDialog overview says: "Extra functionality is automatically given to the dialog box, such as tabbing between items (currently Windows only). " but that does not help much.

If the platform supports it then checkboxes will be able to be tabbed to and toggled with (usually) the spacebar. I think this should normally always work on Windows and wxGTK. On OS X you need to go to System Preferences --> Keyboard & Mouse --> Keyboard Access, and check "turn on full keyboard access" and select "Any control"

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Pierre,

Pierre Rouleau wrote:

Hi all,

How:

- Do you allow a user to check a check box, shown inside a dialog, by hitting a simple keystroke (instead of forcing the user to use the mouse).

- Ensure that the check box is inside the list of items you can navigate using the TAB key.

Didn't try on a dialog, but on a panel when check box is in focus you can press "space bar" to set or un-set it. Seeing that it is in Focus is not very easy, at least I have not found a way to make it obvious, I just know that pressing tab on the previous field gets me there.

The wxWindows doc on wxCheckBox does help much. The styles don't seem to control that either.

The wxDialog overview says: "Extra functionality is automatically given to the dialog box, such as tabbing between items (currently Windows only). " but that does not help much.

Where else should I look?

Thanks

Pierre

see you
Werner

[Pierre]

- Do you allow a user to check a check box, shown inside a dialog, by hitting a simple keystroke (instead of forcing the user to use the mouse).

- Ensure that the check box is inside the list of items you can navigate using the TAB key.

[Robin]

If the platform supports it then checkboxes will be able to be tabbed to and toggled with (usually) the spacebar. I think this should normally always work on Windows and wxGTK. On OS X you need to go to System Preferences --> Keyboard & Mouse --> Keyboard Access, and check "turn on full keyboard access" and select "Any control"

[Werner]

Didn't try on a dialog, but on a panel when check box is in focus you can press "space bar" to set or un-set it. Seeing that it is in Focus is not very easy, at least I have not found a way to make it obvious, I just know that pressing tab on the previous field gets me there.

[Pierre]

The space bar trick works on a dialog as well. Thanks!

Now I have to find a way to make it obvious enough for my users and my PV team!

Pierre

If the platform supports it then checkboxes will be able to be tabbed to and toggled with (usually) the spacebar. I think this should normally always work on Windows and wxGTK. On OS X you need to go to System Preferences --> Keyboard & Mouse --> Keyboard Access, and check "turn on full keyboard access" and select "Any control"

[Werner]

Didn't try on a dialog, but on a panel when check box is in focus you can press "space bar" to set or un-set it. Seeing that it is in Focus is not very easy, at least I have not found a way to make it obvious, I just know that pressing tab on the previous field gets me there.

[Pierre]

The space bar trick works on a dialog as well. Thanks!

Now I have to find a way to make it obvious enough for my users and my PV team!

You can also create an alt+letter shortcut for a particular checkbox by inserting an ampersand (&) before a letter in the label of the checkbox. That allows the user to go directly to a particular check box, and underlines the shortcut letter to give the user a visual cue of the shortcut (at least under Windows pre-XP and Windows XP with the appropriate settings).

David

David C. Fox wrote:

If the platform supports it then checkboxes will be able to be tabbed to and toggled with (usually) the spacebar. I think this should normally always work on Windows and wxGTK. On OS X you need to go to System Preferences --> Keyboard & Mouse --> Keyboard Access, and check "turn on full keyboard access" and select "Any control"

[Werner]

Didn't try on a dialog, but on a panel when check box is in focus you can press "space bar" to set or un-set it. Seeing that it is in Focus is not very easy, at least I have not found a way to make it obvious, I just know that pressing tab on the previous field gets me there.

[Pierre]

The space bar trick works on a dialog as well. Thanks!

Now I have to find a way to make it obvious enough for my users and my PV team!

[David]
You can also create an alt+letter shortcut for a particular checkbox by inserting an ampersand (&) before a letter in the label of the checkbox. That allows the user to go directly to a particular check box, and underlines the shortcut letter to give the user a visual cue of the shortcut (at least under Windows pre-XP and Windows XP with the appropriate settings).

[Pierre]
What are the Windows XP appropriate settings?

Pierre Rouleau wrote:

David C. Fox wrote:

If the platform supports it then checkboxes will be able to be tabbed to and toggled with (usually) the spacebar. I think this should normally always work on Windows and wxGTK. On OS X you need to go to System Preferences --> Keyboard & Mouse --> Keyboard Access, and check "turn on full keyboard access" and select "Any control"

[Werner]

Didn't try on a dialog, but on a panel when check box is in focus you can press "space bar" to set or un-set it. Seeing that it is in Focus is not very easy, at least I have not found a way to make it obvious, I just know that pressing tab on the previous field gets me there.

[Pierre]

The space bar trick works on a dialog as well. Thanks!

Now I have to find a way to make it obvious enough for my users and my PV team!

[David]
You can also create an alt+letter shortcut for a particular checkbox by inserting an ampersand (&) before a letter in the label of the checkbox. That allows the user to go directly to a particular check box, and underlines the shortcut letter to give the user a visual cue of the shortcut (at least under Windows pre-XP and Windows XP with the appropriate settings).

[Pierre]
What are the Windows XP appropriate settings?

Windows XP allows the user to hide the underscores Alt-key shortcuts until the Alt key is pressed. The setting is under Control Panel / Display / Appearance / Effects. I think it is the default setting, at least with the default Windows XP theme.

As a developer, you can't do anything about this (except tell your users to turn on that option if they want to see the underscores all the time).

David

David C. Fox wrote:

Pierre Rouleau wrote:

David C. Fox wrote:

If the platform supports it then checkboxes will be able to be tabbed to and toggled with (usually) the spacebar. I think this should normally always work on Windows and wxGTK. On OS X you need to go to System Preferences --> Keyboard & Mouse --> Keyboard Access, and check "turn on full keyboard access" and select "Any control"

[Werner]

Didn't try on a dialog, but on a panel when check box is in focus you can press "space bar" to set or un-set it. Seeing that it is in Focus is not very easy, at least I have not found a way to make it obvious, I just know that pressing tab on the previous field gets me there.

[Pierre]

The space bar trick works on a dialog as well. Thanks!

Now I have to find a way to make it obvious enough for my users and my PV team!

[David]
You can also create an alt+letter shortcut for a particular checkbox by inserting an ampersand (&) before a letter in the label of the checkbox. That allows the user to go directly to a particular check box, and underlines the shortcut letter to give the user a visual cue of the shortcut (at least under Windows pre-XP and Windows XP with the appropriate settings).

[Pierre]
What are the Windows XP appropriate settings?

[David]
Windows XP allows the user to hide the underscores Alt-key shortcuts until the Alt key is pressed. The setting is under Control Panel / Display / Appearance / Effects. I think it is the default setting, at least with the default Windows XP theme.

As a developer, you can't do anything about this (except tell your users to turn on that option if they want to see the underscores all the time).

Thanks David!

I'm tempted to say something about M$, but i'll refrain here...