Board index » delphi » TDBLookUpComboBox and hiding dropdown button

TDBLookUpComboBox and hiding dropdown button

Hello!
I am looking for a sophisticated way to hide the dropdown button at the
TDBLookUpComboBox.
The button should only be visible if the dataset in the
DataSource-property is in Mode 'dsEdit' or 'dsInsert'.

Please excuse my clumsy English, and I'm looking foreward to your reply.

Greetings, Armin Patrick

p.s.: I am using Delphi 5 Pro.

 

Re:TDBLookUpComboBox and hiding dropdown button


Quote
In article <38CE9CDE.AA5FE...@gmx.at>, Armin Patrick wrote:
> I am looking for a sophisticated way to hide the dropdown button at the
> TDBLookUpComboBox.
> The button should only be visible if the dataset in the
> DataSource-property is in Mode 'dsEdit' or 'dsInsert'.

Well, this may not be sophisticated but it is easy and works: place a
TPanel without border or bevels on top of the button and hide and show it
as required. The button is not a separate control, it is painted onto the
controls canvas and just looks and acts like a button.

Peter Below (TeamB)  100113.1...@compuserve.com)
No e-mail responses, please, unless explicitly requested!

Other Threads