Re: [Lazarus] Order of events: TEdit / TListBox

2017-05-22 Thread kapibara via Lazarus
Some more findings. Under Windows, the Edit.Exit event fires before both SelectionChange and OnClick no matter what item you select. Plus under Windows, SelectionChange fires even though an item might already be selected which it doesn't under Linux GTK2. Under both environments, the Click event

Re: [Lazarus] Order of events: TEdit / TListBox

2017-05-22 Thread kapibara via Lazarus
Showing events. -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] Building a project with generics in libraries Laz1.9, FPC 3.0.2.

2017-05-22 Thread Sven Barth via Lazarus
Am 22.05.2017 18:36 schrieb "Donald Ziesig via Lazarus" < lazarus@lists.lazarus-ide.org>: > I will try to submit a bug report with a sample project after my current refactoring job is done (tight schedule, needs to be installed by the end of June). A bug report with a small, self contained example

[Lazarus] Building a project with generics in libraries Laz1.9, FPC 3.0.2.

2017-05-22 Thread Donald Ziesig via Lazarus
Hi All! I have a rather large project that I have been refactoring from an earlier version that works. It is implemented in Laz 1.6.2. The new version takes considerable advantage of generics (which I learned first from Ada in the 1970s, then from C++ in the 1980s). The resulting code is much

Re: [Lazarus] intercepting keyboard events

2017-05-22 Thread Ondrej Pokorny via Lazarus
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

Re: [Lazarus] intercepting keyboard events

2017-05-22 Thread Graeme Geldenhuys via Lazarus
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

Re: [Lazarus] intercepting keyboard events

2017-05-22 Thread Graeme Geldenhuys via Lazarus
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

Re: [Lazarus] intercepting keyboard events

2017-05-22 Thread Graeme Geldenhuys via Lazarus
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-

Re: [Lazarus] intercepting keyboard events

2017-05-22 Thread Alexey via 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

Re: [Lazarus] intercepting keyboard events

2017-05-22 Thread Ondrej Pokorny via Lazarus
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

Re: [Lazarus] Error: Identifier not found "FileExistsUTF8"

2017-05-22 Thread Mattias Gaertner via Lazarus
On Mon, 22 May 2017 10:47:49 +0200 zeljko via Lazarus wrote: > On 05/22/2017 10:41 AM, Eric Kom via Lazarus wrote: > > Good day Folks, > > > > I got a program that was coded with lazarus 16.x using fpc 2.7. > > > > Now I have installed lazarus 1.9 with fpc 3.1.1 > > > > During compiled process, I

Re: [Lazarus] Error: Identifier not found "FileExistsUTF8"

2017-05-22 Thread Eric Kom via Lazarus
On 22/05/2017 10:47, zeljko via Lazarus wrote: On 05/22/2017 10:41 AM, Eric Kom via Lazarus wrote: Good day Folks, I got a program that was coded with lazarus 16.x using fpc 2.7. Now I have installed lazarus 1.9 with fpc 3.1.1 During compiled process, I receieved an Error: Identifier not fo

Re: [Lazarus] Error: Identifier not found "FileExistsUTF8"

2017-05-22 Thread zeljko via Lazarus
On 05/22/2017 10:41 AM, Eric Kom via Lazarus wrote: Good day Folks, I got a program that was coded with lazarus 16.x using fpc 2.7. Now I have installed lazarus 1.9 with fpc 3.1.1 During compiled process, I receieved an Error: Identifier not found "FileExistsUTF8" The function FileExistsUTF8

[Lazarus] Error: Identifier not found "FileExistsUTF8"

2017-05-22 Thread Eric Kom via Lazarus
Good day Folks, I got a program that was coded with lazarus 16.x using fpc 2.7. Now I have installed lazarus 1.9 with fpc 3.1.1 During compiled process, I receieved an Error: Identifier not found "FileExistsUTF8" The function FileExistsUTF8 in the fileUtil it is depreciated? Please how to I