Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2021-11

TextHint in TComboBox

8 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Marcos Douglas B. Santos

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, would be a better design instead of inside TEdit?

best regards,
Marcos Douglas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20211115/53355cad/attachment.html>

Reply by email

Marcos Douglas B. Santos
to Marcos Douglas B. Santos
PM Marcos Douglas B. Santos wrote 6 lines
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, would be a better design instead of inside TEdit?

I've found this https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/30682

Marcos Douglas

Reply by email

Werner Pamler
to Marcos Douglas B. Santos: I need to implement a TextHint property—as we have in TEdit— in a component inherited…
Marcos Douglas B. Santos wrote 8 lines
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, would be a better design instead of inside TEdit?

It's already there, at least in Laz 2.2+.

Reply by email

Marcos Douglas B. Santos
to Werner Pamler
PM Werner Pamler wrote 11 lines
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 > way? > Maybe sharing this code, in Lazarus code, for other components, would > be a better design instead of inside TEdit? It's already there, at least in Laz 2.2+.

Yes, after finding the bug issue that I posted in the last email, I tested using trunk...
But I'm using 2.0.12.

regards,
Marcos Douglas

Reply by email

Bart
to Marcos Douglas B. Santos
PM Marcos Douglas B. Santos 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 the final release...

Bart

Reply by email

Marcos Douglas B. Santos
to Bart
PM Bart wrote 10 lines
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 the final release...

Yes, I'll try to copy from 2.2RC. Thank you.

Marcos Douglas

Reply by email

Marcos Douglas B. Santos
to Juha Manninen
PM Juha Manninen wrote 8 lines
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 regression bug there?

I need to use the same version which all developers in the company are using. But we're testing 2.2RC to see if we can upgrade directly. Thanks.

Marcos Douglas

Reply by email