Lazarus

Programming => LCL => Topic started by: AlexanP on December 10, 2016, 08:32:16 pm

Title: Std. ComboBox. How can empty drop down list not to be viewed ?
Post by: AlexanP on December 10, 2016, 08:32:16 pm
I click for empty DropDown and I want that empty list does not drop down. Nothing, not needed empty rectangle.
I want call new Form in "OnDropDown" event. 
Title: Re: Std. ComboBox. How can empty drop down list not to be viewed ?
Post by: AlexanP on December 10, 2016, 08:55:17 pm
Property   ComboBox1.DroppedDown:=false;   doesn't impacts on behavior of ComboBox

Description:

Indicates whether the drop-down list has appeared.

Setting this property opens or closes the drop-down list.
Title: Re: Std. ComboBox. How can empty drop down list not to be viewed ?
Post by: VTwin on December 11, 2016, 12:08:38 am
What widget set (or platform) are you using? You have to add Items in TStrings to a ComboBox to display them.

VTwin
Title: Re: Std. ComboBox. How can empty drop down list not to be viewed ?
Post by: zeljko on December 11, 2016, 11:01:15 am
Looks like gtk2 ws.
Title: Re: Std. ComboBox. How can empty drop down list not to be viewed ?
Post by: AlexanP on December 11, 2016, 11:49:10 am
DropDownCount:=0  shows 1(not 0) items. Why ?