Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-02

TCheckbox and +/- keys

5 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys

Hi,

This is regarding Mantis bug report:
http://bugs.freepascal.org/view.php?id=10841

I have tried applications in Windows, GTK1, GTK2 and Qt (native, not KDE) and none of the programs I tried changes the checkbox state with the +/- keys (keypad keys or otherwise). Spacebar toggles the checkbox, but +/- does nothing!

So as far as I can conclude, that is not native behaviour and should not be supported in LCL.

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

zeljko
to Graeme Geldenhuys
Graeme Geldenhuys wrote 12 lines
Hi, This is regarding Mantis bug report: http://bugs.freepascal.org/view.php?id=10841 I have tried applications in Windows, GTK1, GTK2 and Qt (native, not KDE) and none of the programs I tried changes the checkbox state with the +/- keys (keypad keys or otherwise). Spacebar toggles the checkbox, but +/- does nothing! So as far as I can conclude, that is not native behaviour and should not be supported in LCL.

Only SpaceBar should toggle checkbox. I've never seen +- toggles anything except (collapsing & expanding) nodes in treeviews.

Reply by email

Paul Ishenin
to Graeme Geldenhuys: This is regarding Mantis bug report: http://bugs.freepascal.org/view.php?id=10841 I have…
Graeme Geldenhuys wrote 12 lines
Hi, This is regarding Mantis bug report: http://bugs.freepascal.org/view.php?id=10841 I have tried applications in Windows, GTK1, GTK2 and Qt (native, not KDE) and none of the programs I tried changes the checkbox state with the +/- keys (keypad keys or otherwise). Spacebar toggles the checkbox, but +/- does nothing! So as far as I can conclude, that is not native behaviour and should not be supported in LCL

And it is not supported by the LCL. Problem was that space bar did not toggle neither checkbox nor button - I repaired what was broken - thats all.

Best regards,
Paul Ishenin.

Reply by email

Graeme Geldenhuys
to Paul Ishenin
Paul Ishenin wrote
And it is not supported by the LCL. Problem was that space bar did not toggle neither checkbox nor button - I repaired what was broken - thats all.

Sorry, then I misunderstood the Mantis bug report. From the messages in the bug report it sounded like you added support for the Spacebar (which I know should be supported) and support for the +/- keys. The latter is what I am querying. I've never seen +/- keys work on a TCheckBox.

If only the Spacebar is supported to toggle the Checked property, then
their is no issue.  :)

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Paul Ishenin
to Graeme Geldenhuys
Graeme Geldenhuys wrote 15 lines
On 18/02/2008, Paul Ishenin wrote: > And it is not supported by the LCL. Problem was that space bar did not > toggle neither checkbox nor button - I repaired what was broken - thats all. > Sorry, then I misunderstood the Mantis bug report. From the messages in the bug report it sounded like you added support for the Spacebar (which I know should be supported) and support for the +/- keys. The latter is what I am querying. I've never seen +/- keys work on a TCheckBox. If only the Spacebar is supported to toggle the Checked property, then their is no issue. :)

I have not added support neither for +/- nor for spacebar. It is qt deal what key they are using to togle it - I just corrected piece of code which blocks internal qt (not lazarus qt interface) key handling. As result space can toggle checkbox now.

Best regards,
Paul Ishenin.

Reply by email