Sign in Join

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

Mailing lists / lazarus / 2024-05

question re tdblookupcombobox

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

duilio foschi

the string to display on screen (property DataField) is short.

The strings that are listed for selection (field ListField) are wide.

I would like to have the control width = 66 pixels and the drop-down list width = 200 pixels.

Is there a way to get this behaviour?

Right now, the drop-down list is 66 pixels and as a result the strings in the list are truncated...very ugly.

Thank you

Peppe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20240503/1d64374c/attachment.htm>

Reply by email

Flávio Etrusco
to duilio foschi
You could try:
  TComboBox(DBLookupComboBox1).ItemWidth:=200;

It should be OK since ItemWidth is implemented in TCustomComboBox. If it indeed works without problems, you should probably create a ticket to make that property published.

Regards,
Fl?vio

Em sex., 3 de mai. de 2024 ?s 12:15, duilio foschi via lazarus <

Show quoted text 27 lines
escreveu: the string to display on screen (property DataField) is short. The strings that are listed for selection (field ListField) are wide. I would like to have the control width = 66 pixels and the drop-down list width = 200 pixels. Is there a way to get this behaviour? Right now, the drop-down list is 66 pixels and as a result the strings in the list are truncated...very ugly. Thank you Peppe -- _______________________________________________ lazarus mailing list https://lists.lazarus-ide.org/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20240504/05e1c9fb/attachment.htm>

Reply by email