473,394 Members | 1,946 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Problem with tabbing and option buttons

I have a data entry form that allows the user to navigate around
entirely using the keyboard. However, it contains various option
button controls which are in the tab order. Whenever they are "hit"
in the tab order, they are immediately "pressed" (e.g. they go from
Unchecked to Checked) Is there any way of suppressing this action
while still keeping them in the tab order?

TIA

Edward
--
The reading group's reading group:
http://www.bookgroup.org.uk
Jul 17 '05 #1
3 4056

"Edward" <te********@hotmail.com> wrote in message
news:25**************************@posting.google.c om...
I have a data entry form that allows the user to navigate around
entirely using the keyboard. However, it contains various option
button controls which are in the tab order. Whenever they are "hit"
in the tab order, they are immediately "pressed" (e.g. they go from
Unchecked to Checked) Is there any way of suppressing this action
while still keeping them in the tab order?


First of all, you should grou your option buttons using a frame. This way,
you don't have to do any coding to ensure that only one option button is
selected.

The grouped option button behaves correctly as per the standard user
interface. As you enter, the first option (radio) button is selected. Within
the group you would use the up and down arrow keys to move the selection and
the mark. Then use TAB to move out of the group. This need to be done
because you cannot leave a group of option button with nothing selected. The
way you want to do it it would make it possible (which would violate user
interface). If you want to allow none or all, you should use check boxes.
Jul 17 '05 #2
"Raoul Watson" <Wa*****@IntelligenCIA.com> wrote in message news:<eB*****************@nwrddc02.gnilink.net>...
"Edward" <te********@hotmail.com> wrote in message
news:25**************************@posting.google.c om...
I have a data entry form that allows the user to navigate around
entirely using the keyboard. However, it contains various option
button controls which are in the tab order. Whenever they are "hit"
in the tab order, they are immediately "pressed" (e.g. they go from
Unchecked to Checked) Is there any way of suppressing this action
while still keeping them in the tab order?


First of all, you should grou your option buttons using a frame. This way,
you don't have to do any coding to ensure that only one option button is
selected.

The grouped option button behaves correctly as per the standard user
interface. As you enter, the first option (radio) button is selected. Within
the group you would use the up and down arrow keys to move the selection and
the mark. Then use TAB to move out of the group. This need to be done
because you cannot leave a group of option button with nothing selected. The
way you want to do it it would make it possible (which would violate user
interface). If you want to allow none or all, you should use check boxes.


Thanks for this. The form is by now far too complex to be reworked in
the way that you suggest. However, within the terms of reference of
my application, you are wrong when you suggest that "If you want to
allow none or all, you should use check boxes". My application is
designed to capture survey data, and no entry is marked down as no
answer. Although I suppose I could add an extra option button for
just that contingency, though we are seriously running out of screen
real estate.

Edward
--
The reading group's reading group:
http://www.bookgroup.org.uk
Jul 17 '05 #3
On 1 Nov 2003 08:30:44 -0800, te********@hotmail.com (Edward) wrote:
<snip>

Thanks for this. The form is by now far too complex to be reworked in
the way that you suggest.
In that case it is about time you ripped the App apart and rebuilt it
However, within the terms of reference of
my application, you are wrong when you suggest that "If you want to
allow none or all, you should use check boxes".
Actually, I think he is right
- your problem is the peculiar behaviour of 'grouped' option buttons
- check boxes do not behave in that perverse manner

- however personally I would use a UserControl ...
My application is
designed to capture survey data, and no entry is marked down as no
answer. Although I suppose I could add an extra option button for
just that contingency, though we are seriously running out of screen
real estate.


The 'no answer' bit is not relevant to your problem
- and I don't think Raoul was suggesting that it would help
- that is just an explanation of the perverse behaviour of grouped
option buttons (and frankly I don't think it is quite correct - it is
actually down to the Arrow keys - and sadly windows nicks them before
the KeyDown event )

If you are running out of 'screen real estate' then you need to have a
major re-think

Also, if you want to add a question, and you have to touch the source
code, you are skating on thin ice.

Your Form should contain just one Control Array of the very
peculiar/specific input types that you have created
- ideally driven from a parameter file

Look into UserControls, and have a look at some of the more
interesting Windows APIs - DrawFrameControl comes to mind
Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: George | last post by:
Hi all, I have the following code to use checkboxes on my page: if instr(Request.form("chkWorkType"),"03") then response.write("<td width=""23%"" class=""detaillp""><input type=""checkbox""...
6
by: Robert | last post by:
Hello. I have been trying out the Lebans ToolTip Classes at http://www.lebans.com/tooltip.htm, to display "balloon" style help tips in a form. The classes I am using are located at...
3
by: Richard | last post by:
Tabbing from the first control on a form always sends me to IE's Address Bar instead of the next control, no matter how I set the TabIndex property for the controls. Why is this happening? For...
1
by: Tom | last post by:
A dumb question: Exactly how does tabbing work in an ASP.NET form in the browser? Does it work the same was as a Windows Forms form does? I have a rather complicated ASP form (that consists of...
6
by: Doug Bell | last post by:
Hi I have a DataGrid with some hidden columns and also some read Only and some ComboBox Columns. Sandard Tabbing through the Datagrid sees the focus go to the hidden columns requiring further...
10
by: jp | last post by:
I have multiple PMW widgets (EntryFields, ScrolledField etc), how can I skip over these widgets when using the tab key? Thank you, John
1
by: Meenakshi Sundaram | last post by:
Hi I have a page which contains 3 Iframes loaded dynamically in a iterate loop. I have a requirement to navigate though all the buttons and hyperlinks in the page through the TAB key. But I do...
1
by: dishal | last post by:
Hi, Im having a problem with typing on the JPanel. The thing is, that it works perfectly fine when this line " content.add(jp, BorderLayout.NORTH); " is taken out (its the buttons panel) but when its...
2
beacon
by: beacon | last post by:
Hi everybody, I have a form that has a combo box that asks the user to select the program they work on. Once the user selects the program, a SQL statement populates the row source for 4 staff...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.