On 22.05.2017 16:05, Graeme Geldenhuys via Lazarus wrote:
On 2017-05-22 15:01, Ondrej Pokorny via Lazarus wrote:
For an example look how it is done in TCustomDBGrid.MouseDown.
+ The control can always get focused by the Tab key, if TabStop=True.
I'll double check that as well, just to be sur
On 2017-05-22 15:01, Ondrej Pokorny via Lazarus wrote:
For an example look how it is done in TCustomDBGrid.MouseDown.
+ The control can always get focused by the Tab key, if TabStop=True.
I'll double check that as well, just to be sure.
Thanks to both for the very prompt replies. Much appreci
On 2017-05-08 17:46, zeljko via Lazarus wrote:
Just to be sure that control actually can take focus put this
ControlStyle := ControlStyle - [csNoFocus];
into constructor of your control.
And what if that doesn't work? I've set that in the constructor, but
still it doesn't receive keyboard focu
On 2017-05-22 14:57, Graeme Geldenhuys via Lazarus wrote:
And what if that doesn't work?
Ignore that. I forced a Rebuild of all units, and now suddenly it is
working as expected.
Regards,
Graeme
--
___
Lazarus mailing list
Lazarus@lists.lazarus-
On 22.05.2017 16:57, Graeme Geldenhuys via Lazarus wrote:
What else can I try?
Adding public SetFocus; override;--
procedure TATSynEdit.SetFocus;
begin
LCLIntf.SetFocus(Handle);
end;
--
Regards,
Alexey
--
___
Lazarus mailing list
Lazarus@lists.l
On 22.05.2017 15:57, Graeme Geldenhuys via Lazarus wrote:
On 2017-05-08 17:46, zeljko via Lazarus wrote:
Just to be sure that control actually can take focus put this
ControlStyle := ControlStyle - [csNoFocus];
into constructor of your control.
And what if that doesn't work? I've set that in t
On 08.05.2017 17:42, Michael Van Canneyt via Lazarus wrote:
Hi,
How can I respond to keyboard events in a TCustomControl (and hence
TWinControl) descendent ?
I have asigned the various OnKey* events handlers but they are not called.
My control also does not seem to receive focus when clicked,
On 08.05.2017 17:42, Michael Van Canneyt via Lazarus wrote:
Is there something that must be called/set when creating the control
to make
it receive focus ?
If you mean receiving focus by clicking on it then yes, you need to call
SetFocus in MouseDown. It's also a good idea to check the csNoFo
Hi,
How can I respond to keyboard events in a TCustomControl
(and hence TWinControl) descendent ?
I have asigned the various OnKey* events handlers but they are not called.
My control also does not seem to receive focus when clicked, I assume this is
why
it doesn't get keyboard events eithe