"Click on Button" is different from "Enter on Selected button"

Started by Peter2, July 30, 2018, 08:58:39 AM

Previous topic - Next topic

Peter2

Maybe this is again one of the "it is too hot to think clearly", but ...

in some cases there is a difference if
a) I click on a button and the OnClick-event is triggered or
b) I set the focus to the same button via tab - tab - tab ... and press "Enter": And nothing happens

Example for
a) OpendclDemo, "List Box": the buttons an the right accept mouse-click and focus-plus-Enter
b) Opendcldemo, Message Box Sample: The button "Show Message Box" accepts only the mouseclick, but no "Enter"

What is the difference?
Peter
ODCL 9.1.... German, AutoCAD 2023, Bricscad 26, Win 11

owenwengerd

They are different kinds of controls: the message box sample uses text buttons, the other uses graphic buttons with no picture. I don't recall why they behave differently.
Owen Wengerd (Outside The Box) / ManuSoft