[lazarus] Patch: ComboBox issues
Michael Van Canneyt
michael.vancanneyt at wisa.be
Wed Jul 30 08:31:38 EDT 2003
On Wed, 30 Jul 2003, Marc Weustink wrote:
> + From: Mattias Gaertner [mailto:nc-gaertnma at netcologne.de]
> + Sent: woensdag 30 juli 2003 14:11
> +
> +
> + On Wed, 30 Jul 2003 11:10:57 +0200
> + "Marc Weustink" <marc.weustink at cuperus.nl> wrote:
> +
> + > + From: Karl Brandt [mailto:pascalive at bol.com.br]
> + > + Sent: woensdag 30 juli 2003 6:36
>
> [SNIP]
>
> + > + -Changes to the Height property are ignored and reading it will
> + > + allways return the height of the edit part (determined by the font):
> +
> + Ok. The gtk-interface is doing the same for scrollbars.
> +
> +
> + > + just like in Delphi
> +
> + Who cares what Delphi can _not_ do? ;)
>
> It is not a Delphi issue, but it is (or at least was) a Win(32 ?) issue.
>
> For some odd reason, the height of a combo is the Edit area +
> DropDownHeight.
> At least that was what I thought. I've reread the the MSDN about comboboxes
> and nowhere is stated that the height is fixed. I think it is possible to
> set the heigtht of the edit area.
It depends on the combobox style. Normally it is only so for 'simple'
dropdowns. From the Delphi help:
csDropDown Creates a drop-down list with an edit box for manually entered text.
All items are strings of the same height.
csSimple Creates an edit box with a fixed list (list box) underneath.
The length of the list is determined by the Height of the combo box.
csDropDownList Creates a drop-down list with no edit box; the user cannot enter text manually.
All items are strings of the same height.
csOwnerDrawFixed Creates an owner-draw drop-down list with an edit box for manually entered text.
Each item in the list is the height specified by the ItemHeight property.
csOwnerDrawVariable Creates an owner-draw drop-down list with an edit box for manually entered text.
List items can have varying heights.
Michael.
More information about the Lazarus
mailing list