-
Is there a TLabeledEdit equivalent for KOL? It should allow keyboard accelerator to activate editbox. Thanks in advance.
-
LabelEdit = standart label with AcceptChildren plus EditBox.
-
But if label has accelerator like &Label1 then when I press ALT+L on keyboard I want the editbox to receive focus. Is this possible?
-
The VCL has property "FocusControl" - I think that is what is required in KOL.
-
The other way around? Editbox + acceptchildren + label? (didn't try it) Must be easy to implemen, though
-
I tried that to - but the label can only be within the editbox entry field, not outside it.
I also tried a panel with a label and editbox, with focus going to the editbox on focus, but trouble is I still cannot use keyboard accelerators as with the VCL TLabeledEdit.
-
OnMessage on the label, can focus := true, Catch In the OnMessage handler WM_FOCUS and send it to the editbox.
-
Thanks. Good idea, OK with mouse click, but not with keyboard accelerator.
I shall have to investigate why labels do not respond to keyboard accelerators.
|