Sign in Join

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

Mailing lists / lazarus / 2011-12

Combobox styles

7 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

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

Hans-Peter Diettrich

A combobox with csSimple style is not handled properly at design time (win32). It's impossible to give the control a specific Height, it stays on the dropdown style equivalent (Height=23).

Is it me, or is this a bug?

DoDi

Reply by email

Howard Page-Clark
to Hans-Peter Diettrich
Hans-Peter Diettrich wrote 5 lines
A combobox with csSimple style is not handled properly at design time (win32). It's impossible to give the control a specific Height, it stays on the dropdown style equivalent (Height=23). Is it me, or is this a bug?

I think it's a limitation of the underlying win32 widget.

Reply by email

Hans-Peter Diettrich
to Howard Page-Clark
Show quoted text 8 lines
On 27/12/11 12:57, Hans-Peter Diettrich wrote: > A combobox with csSimple style is not handled properly at design time > (win32). It's impossible to give the control a specific Height, it stays > on the dropdown style equivalent (Height=23). > > Is it me, or is this a bug? I think it's a limitation of the underlying win32 widget.

No, it's a limitation (or bug) in the Lazarus widgeset. Perhaps related to the assumption, that the drop-down list height is specified by the number of items - what's not always handy with non-dropdown lists.

DoDi

Reply by email

Vincent Snijders
to Felipe Monteiro de Carvalho

2011/12/28 Felipe Monteiro de Carvalho :

Show quoted text 7 lines
On Wed, Dec 28, 2011 at 3:09 AM, Hans-Peter Diettrich wrote: > No, it's a limitation (or bug) in the Lazarus widgeset. What makes you so sure? AFAIR the native Windows combo box is really limited on the height.

Except when using the ancient csSimple style. Then the height includes the always visible (always dropped down) list, IIRC.

Vincent

Reply by email

Michael Van Canneyt
to Vincent Snijders
Vincent Snijders wrote 11 lines
2011/12/28 Felipe Monteiro de Carvalho : > On Wed, Dec 28, 2011 at 3:09 AM, Hans-Peter Diettrich > wrote: >> No, it's a limitation (or bug) in the Lazarus widgeset. > > What makes you so sure? > > AFAIR the native Windows combo box is really limited on the height. Except when using the ancient csSimple style. Then the height includes the always visible (always dropped down) list, IIRC.

Correct.

Michael.

Reply by email

Hans-Peter Diettrich
to Felipe Monteiro de Carvalho: On Wed, Dec 28, 2011 at 3:09 AM, Hans-Peter Diettrich What makes you so sure? AFAIR the…
Show quoted text 5 lines
On Wed, Dec 28, 2011 at 3:09 AM, Hans-Peter Diettrich wrote: > No, it's a limitation (or bug) in the Lazarus widgeset. What makes you so sure?

I already used Windows comboboxes decades ago, on Win3.1.

AFAIR the native Windows combo box is really limited on the height.

No. Delphi allows me to specify a height in pixels, at design time, and reflects it properly. Lazarus shows the list only when the control is aligned (e.g. alLeft), and even then the gap between the logical (integral) and physical height is unhandled (background never erased).

DoDi

Reply by email