Board index » delphi » *** Hiding DropDown Button on Combo Component ****

*** Hiding DropDown Button on Combo Component ****

Hi everyone, is it possible to hide the DropDown Button on
TDBLookupCombox, TDBComboBox, TCombox,etc.? If the answer is Yes, How?
The idea is to show the DropDown Button when editing or inserting and to

hide it when browsing.

Thank in advance, Esteban.

 

Re:*** Hiding DropDown Button on Combo Component ****


Esteban,

Drop a TDBEdit exactly on top of the Combo.  At runtime, make the Combo
Visible when you are editing and make the TDBEdit Visible when you are just
browsing.  (Remember to set the other control Visible := False)

Jim

Quote
Esteban Caldentey Morales wrote:
> Hi everyone, is it possible to hide the DropDown Button on
> TDBLookupCombox, TDBComboBox, TCombox,etc.? If the answer is Yes, How?
> The idea is to show the DropDown Button when editing or inserting and to

> hide it when browsing.

> Thank in advance, Esteban.

Re:*** Hiding DropDown Button on Combo Component ****


Hi Jim, in fact this is what i do.The problem is when you have a lot of Combos
on a form you end up with a heavy and not very frendly form. That is why i'm
searching for another solution. Souftouchdev has a set of Combos with the
capability that i'm
looking for but i cost $129.

Regards Esteban.

Jim Elden escribi:

Quote
> Esteban,

> Drop a TDBEdit exactly on top of the Combo.  At runtime, make the Combo
> Visible when you are editing and make the TDBEdit Visible when you are just
> browsing.  (Remember to set the other control Visible := False)

> Jim

> Esteban Caldentey Morales wrote:

> > Hi everyone, is it possible to hide the DropDown Button on
> > TDBLookupCombox, TDBComboBox, TCombox,etc.? If the answer is Yes, How?
> > The idea is to show the DropDown Button when editing or inserting and to

> > hide it when browsing.

> > Thank in advance, Esteban.

Re:*** Hiding DropDown Button on Combo Component ****


Dear Esteban

The easiest way to do that is to set the Style property to csSimple. This
way, the dropdown button becomes invisible. To make it visible again, set
Style to csDropDown or other valid value.

Alex

Quote
> Hi everyone, is it possible to hide the DropDown Button on
> TDBLookupCombox, TDBComboBox, TCombox,etc.? If the answer is Yes, How?
> The idea is to show the DropDown Button when editing or inserting and to

Re:*** Hiding DropDown Button on Combo Component ****


Quote
Esteban Caldentey Morales wrote:
> Hi everyone, is it possible to hide the DropDown Button on
> TDBLookupCombox, TDBComboBox, TCombox,etc.? If the answer is Yes, How?
> The idea is to show the DropDown Button when editing or inserting and to

> hide it when browsing.

> Thank in advance, Esteban.

Infopower has a few interseting components, that can do this and even more.

--
Edwin Teisman, The Netherlands
email: e.teis...@wxs.nl

Other Threads