I've read the following in the WxWidgets manual:

"""
A dialog box is similar to a panel, in that it is a window which can be used for placing controls, with the following exceptions:

2. Extra functionality is automatically given to the dialog box, such as tabbing between items (currently Windows only).
"""

I've seen that if I put the controls on a frame, I cannot tab from a control to the next one, but if I use a frame and a panel in it, and I store the controls in the panel, I can tab from one control to the other, so using the Dialog is not the only method for beeing able to do this.

The method you described is what is necessary by default to enable tabbing (using a panel). The phrase from the helpfile tells you that a Dialog (Wx::Dialog!) has this functionality by default so you don't need to create it yourself.

And it also says that "in Windows only". Does this mean that on other systems the user is not able to tab from one control to the next one when using a Dialog? (or maybe even a frame/panel)?

No, it just means the possiblilty to tab on a Wx::Dialog by default only works on Windows. I'm pretty sure if you put a panel in there (as in a frame/panel) tabbing works just fine.

Regards,
Huub Peters


  • Dialog Octavian Rasnita
    • Re: Dialog Huub Peters

Reply via email to