Recent

Author Topic: Std. ComboBox. How can empty drop down list not to be viewed ?  (Read 2048 times)

AlexanP

  • Newbie
  • Posts: 3
Std. ComboBox. How can empty drop down list not to be viewed ?
« 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. 

AlexanP

  • Newbie
  • Posts: 3
Re: Std. ComboBox. How can empty drop down list not to be viewed ?
« Reply #1 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.

VTwin

  • Hero Member
  • *****
  • Posts: 775
  • Former Turbo Pascal 3 user
Re: Std. ComboBox. How can empty drop down list not to be viewed ?
« Reply #2 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
“Talk is cheap. Show me the code.” -Linus Torvalds

macOS 10.13.6: Lazarus 2.0 fixes svn 61930 (64 bit Cocoa)
Ubuntu 18.04.3: Lazarus 2.0.4 (64 bit on VBox)
Windows 7 Pro SP1: Lazarus 2.0.4 (64 bit on VBox)
fpc 3.0.4

zeljko

  • Hero Member
  • *****
  • Posts: 1057
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Std. ComboBox. How can empty drop down list not to be viewed ?
« Reply #3 on: December 11, 2016, 11:01:15 am »
Looks like gtk2 ws.

AlexanP

  • Newbie
  • Posts: 3
Re: Std. ComboBox. How can empty drop down list not to be viewed ?
« Reply #4 on: December 11, 2016, 11:49:10 am »
DropDownCount:=0  shows 1(not 0) items. Why ?