Recent

Author Topic: Std. ComboBox. How can empty drop down list not to be viewed ?  (Read 2822 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: 1215
  • 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

Free Pascal Compiler 3.2.2
macOS 12.1: Lazarus 2.2.6 (64 bit Cocoa M1)
Ubuntu 18.04.3: Lazarus 2.2.6 (64 bit on VBox)
Windows 7 Pro SP1: Lazarus 2.2.6 (64 bit on VBox)

zeljko

  • Hero Member
  • *****
  • Posts: 1594
    • 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 ?

 

TinyPortal © 2005-2018