Re: [Lazarus] TextHint in TComboBox

2020-08-13 Thread Ondrej Pokorny via lazarus
On 13.08.2020 21:33, Juha Manninen via lazarus wrote: On Thu, Aug 13, 2020 at 9:54 PM Ondrej Pokorny via lazarus wrote: So for TMemo we need the emulated code, which works now with a minor bug (the TextHint is not visible when the form is shown the first time). Strangely the bug is present only

Re: [Lazarus] TextHint in TComboBox

2020-08-13 Thread Juha Manninen via lazarus
On Thu, Aug 13, 2020 at 9:54 PM Ondrej Pokorny via lazarus wrote: > So for TMemo we need the emulated code, which works now with a minor bug > (the TextHint is not visible when the form is shown the first time). > Strangely the bug is present only in a themed application, not in an > unthemed one.

Re: [Lazarus] TextHint in TComboBox

2020-08-13 Thread Ondrej Pokorny via lazarus
On 13.08.2020 17:58, Juha Manninen via lazarus wrote: On Thu, Aug 13, 2020 at 6:50 PM Juha Manninen wrote: AFAIK it is not emulated on Windows. LCL-Win32 reports LCLCapability flag lcTextHint. Actually it is emulated for older Windows versions. function TWin32WidgetSet.GetLCLCapability has :

Re: [Lazarus] TextHint in TComboBox

2020-08-13 Thread Vojtěch Čihák via lazarus
Yes, it looks fine now.   Thanks! __ Od: "Juha Manninen via lazarus" Komu: "Lazarus mailing list" Datum: 13.08.2020 19:36 Předmět: Re: [Lazarus] TextHint in TComboBox Please test with r63734. The 3-state type TEmulatedTextHintStatus

Re: [Lazarus] TextHint in TComboBox

2020-08-13 Thread Juha Manninen via lazarus
Please test with r63734. The 3-state type TEmulatedTextHintStatus and its thsChanging was needed after all. Should have tested still more. :( At least here it works now. Juha -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazaru

Re: [Lazarus] TextHint in TComboBox

2020-08-13 Thread Juha Manninen via lazarus
On Thu, Aug 13, 2020 at 6:56 PM Vojtěch Čihák via lazarus wrote: > something went wrong. When I open IDE Options or Project Options and I click > on any item of TreeView, everything disappear. Content of the filter become > "(filter)". When I change it (i.e. non-empty string), content is back. >

Re: [Lazarus] TextHint in TComboBox

2020-08-13 Thread Juha Manninen via lazarus
On Thu, Aug 13, 2020 at 6:50 PM Juha Manninen wrote: > AFAIK it is not emulated on Windows. LCL-Win32 reports LCLCapability > flag lcTextHint. Actually it is emulated for older Windows versions. function TWin32WidgetSet.GetLCLCapability has : ... lcTextHint: begin if (ComCtlVersio

Re: [Lazarus] TextHint in TComboBox

2020-08-13 Thread Vojtěch Čihák via lazarus
Hi,   something went wrong. When I open IDE Options or Project Options and I click on any item of TreeView, everything disappear. Content of the filter become "(filter)". When I change it (i.e. non-empty string), content is back. And many of the content is italic.   Lazarus 2.1.0 r63731M FPC 3.3

Re: [Lazarus] TextHint in TComboBox

2020-08-13 Thread Juha Manninen via lazarus
On Thu, Aug 13, 2020 at 6:40 PM Ondrej Pokorny via lazarus wrote: > Emulated TMemo.TextHint (r63708) works perfectly on Win32 (Windows 10). > I haven't checked your more recent changes. WinAPI doesn't support > TMemo.TextHint natively. AFAIK it is not emulated on Windows. LCL-Win32 reports LCLCap

Re: [Lazarus] TextHint in TComboBox

2020-08-13 Thread Ondrej Pokorny via lazarus
On 13.08.2020 15:15, Juha Manninen via lazarus wrote: On Thu, Aug 13, 2020 at 3:23 PM Ondrej Pokorny via lazarus wrote: If I am not mistaken, TEdit has TextHint-emulation for WidgetSets without native support. There is no reason why the same emulation shouldn't work with TMemo. It does not. Ac

Re: [Lazarus] TextHint in TComboBox

2020-08-13 Thread Juha Manninen via lazarus
On Thu, Aug 13, 2020 at 3:23 PM Ondrej Pokorny via lazarus wrote: > If I am not mistaken, TEdit has TextHint-emulation for WidgetSets > without native support. There is no reason why the same emulation > shouldn't work with TMemo. It does not. Actually it never worked. Nobody has tested it maybe

Re: [Lazarus] TextHint in TComboBox

2020-08-13 Thread Ondrej Pokorny via lazarus
On 13.08.2020 14:10, Juha Manninen via lazarus wrote: TextHint in TMemo works only with widgetset's native support. It works with QT5 but not with GTK2. The emulation for TMemo turned out to be tricky. It may never be implemented, unless somebody provides a patch of course. If I am not mistaken

[Lazarus] TextHint in TComboBox

2020-08-13 Thread Juha Manninen via lazarus
Regarding issue : https://bugs.freepascal.org/view.php?id=30682 I added TextHint to TComboBox in r63731. QT5 now works with native TextHint, GTK2 with emulated one. Native support for Win32 is not implemented yet. Somebody please implement it. Other widgetsets that natively support this feature f