Re: [Lazarus] TextHint in TComboBox

2021-11-16 Thread Marcos Douglas B. Santos via lazarus
On Mon, Nov 15, 2021 at 4:50 PM Juha Manninen via lazarus wrote: > > On Mon, Nov 15, 2021 at 8:12 PM Marcos Douglas B. Santos via lazarus > wrote: >> >> Yes, I'll try to copy from 2.2RC. Thank you. > > > Why can't you use 2.2RC directly? It is very close to the final 2.2. > Do you experience a r

Re: [Lazarus] TextHint in TComboBox

2021-11-15 Thread Juha Manninen via lazarus
On Mon, Nov 15, 2021 at 8:12 PM Marcos Douglas B. Santos via lazarus < lazarus@lists.lazarus-ide.org> wrote: > Yes, I'll try to copy from 2.2RC. Thank you. > Why can't you use 2.2RC directly? It is very close to the final 2.2. Do you experience a regression bug there? Juha -- __

Re: [Lazarus] TextHint in TComboBox

2021-11-15 Thread Marcos Douglas B. Santos via lazarus
On Mon, Nov 15, 2021 at 2:40 PM Bart via lazarus wrote: > > On Mon, Nov 15, 2021 at 5:04 PM Marcos Douglas B. Santos via lazarus > wrote: > > > Yes, after finding the bug issue that I posted in the last email, I > > tested using trunk... > > But I'm using 2.0.12. > > Well, either copy the relevan

Re: [Lazarus] TextHint in TComboBox

2021-11-15 Thread Bart via lazarus
On Mon, Nov 15, 2021 at 5:04 PM Marcos Douglas B. Santos via lazarus wrote: > Yes, after finding the bug issue that I posted in the last email, I > tested using trunk... > But I'm using 2.0.12. Well, either copy the relevant parts to your 2.0.12, use the 2.2RC or wait just a little bit more for

Re: [Lazarus] TextHint in TComboBox

2021-11-15 Thread Marcos Douglas B. Santos via lazarus
On Mon, Nov 15, 2021 at 12:56 PM Werner Pamler via lazarus wrote: > > Am 15.11.2021 um 16:37 schrieb Marcos Douglas B. Santos via lazarus: > > I need to implement a TextHint property—as we have in TEdit— in a > > component inherited from TComboBox. Doesn't matter if it will be > > "emulated" or n

Re: [Lazarus] TextHint in TComboBox

2021-11-15 Thread Werner Pamler via lazarus
Am 15.11.2021 um 16:37 schrieb Marcos Douglas B. Santos via lazarus: I need to implement a TextHint property—as we have in TEdit— in a  component inherited from TComboBox. Doesn't matter if it will be "emulated" or not. My first thought was copying from TEdit... however, is this the better wa

Re: [Lazarus] TextHint in TComboBox

2021-11-15 Thread Marcos Douglas B. Santos via lazarus
On Mon, Nov 15, 2021 at 12:37 PM Marcos Douglas B. Santos wrote: > > Hi, > I need to implement a TextHint property—as we have in TEdit— in a component > inherited from TComboBox. Doesn't matter if it will be "emulated" or not. > > My first thought was copying from TEdit... however, is this the b

[Lazarus] TextHint in TComboBox

2021-11-15 Thread Marcos Douglas B. Santos via lazarus
Hi, I need to implement a TextHint property—as we have in TEdit— in a component inherited from TComboBox. Doesn't matter if it will be "emulated" or not. My first thought was copying from TEdit... however, is this the better way? Maybe sharing this code, in Lazarus code, for other components, wou

Re: [Lazarus] TextHint in TComboBox

2020-08-14 Thread Juha Manninen via lazarus
On Fri, Aug 14, 2020 at 9:32 AM Ondrej Pokorny via lazarus wrote: > Why have you removed the (FTextHint <> '') check in CanShowEmulatedTextHint? > Why should the emulated text hint be shown if there is none? It was restored later as I noticed the same error. First I planned to make it generic cod

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 TEm

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
63731M FPC 3.3.1 x86_64-linux-qt   Vojtěch a.k.a. Blaazen __ Od: "Juha Manninen via lazarus" Komu: "Lazarus mailing list" Datum: 13.08.2020 14:10 Předmět: [Lazarus] TextHint in TComboBox Regarding issue : https://b

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