Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: How can I close dropdown of TComboBox by code?



Permlink Replies: 2 - Last Post: Dec 16, 2015 10:15 AM Last Post By: Carlos Moreno
Carlos Moreno

Posts: 12
Registered: 1/30/05
How can I close dropdown of TComboBox by code?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 10, 2015 11:17 AM
I tried ComboBox.DroppedDown := false but this property is readonly on firemonkey
Dave Nottage

Posts: 1,850
Registered: 1/7/00
Re: How can I close dropdown of TComboBox by code?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 15, 2015 4:44 PM   in response to: Carlos Moreno in response to: Carlos Moreno
Carlos Moreno wrote:
I tried ComboBox.DroppedDown := false but this property is readonly on firemonkey

type
  TOpenComboBox = class(TComboBox);
 
...
 
  TOpenComboBox(ComboBox1).Popup.IsOpen := False;
 


--
Dave Nottage [TeamB]
Delphi Worlds blog: http://delphi.radsoft.com.au/blog
Carlos Moreno

Posts: 12
Registered: 1/30/05
Re: How can I close dropdown of TComboBox by code?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 16, 2015 10:15 AM   in response to: Carlos Moreno in response to: Carlos Moreno
using droppdown again makes a toggle effect.

Thank you
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02