No this isn't what I mean - I'm actually using the csDropDownList style, but
I want to prevent users from even selecting a new value.

Tom

> -----Original Message-----
> From: Patrick Dunford [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 21, 2000 5:23 PM
> To: Multiple recipients of list delphi
> Subject: RE: [DUG]: Disabled combobox without grey text
> 
> 
> I presume you are referring to the type of combobox that has 
> a text field
> that people can type in, as well as a dropdown list.
> 
> The Style property in this case is csDropDown. Change it to 
> csDropDownList
> and it becomes a read-only list, with no user entry permitted.
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]]On
> > Behalf Of Tom Munro Glass
> > Sent: Saturday, 22 January 2000 06:10
> > To: Multiple recipients of list delphi
> > Subject: [DUG]: Disabled combobox without grey text
> >
> >
> > I have a dynamically created form which contains a number 
> of TEdit and
> > TCombobox controls. Depending on various runtime 
> conditions, some of the
> > controls need to be read-only and some can be changed.
> >
> > I set the ReadOnly property of the TEdit controls to True, but I
> > have to set
> > Enabled to False on the TCombobox controls. Unfortunately this
> > greys out the
> > text which is not what I want.
> >
> > Is there a way of preventing a user from changing a 
> TCombobox without the
> > text being greyed out?
> >
> > ==================================================================
> >
> > Tom Munro Glass
> >
> > +----------------------------------------------------------------+
> > | E-mail:                                                        |
> > |     Internet:           [EMAIL PROTECTED]                         |
> > | Web sites:                                                     |
> > |     TMG CONSULTANCY:    http://www.tmgcon.com                  |
> > |     Tewkesbury Web:     http://www.tmgcon.com/tewksweb         |
> > +----------------------------------------------------------------+
> >
> > ------------------------------------------------------------------
> > ---------
> >     New Zealand Delphi Users group - Delphi List - 
> [EMAIL PROTECTED]
> >                   Website: http://www.delphi.org.nz
> >
> 
> --------------------------------------------------------------
> -------------
>     New Zealand Delphi Users group - Delphi List - 
> [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> 
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to