Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DBEditBox. color.from within Pascal

Status
Not open for further replies.

poksal

Programmer
Aug 20, 2006
6
US
I don't think the version makes much difference here..

I need to cause the color property of a DBEdit box to change according to the contents entered as it posts to the datafield.

I know my code works at the DBEditBox and database level because because when I test the code by applying it to a PanelBox it changes the PanelBox color, but when I apply it to a DBEditBox it does not work.

{So far my code is as follows:}

If DBEditBoxYada.Text = 'G'
Then DBEditBoxYada.Color := clGreen
Else YadaYada;

{parent color is false}
{If you replace the 2nd DBEditBox with a panel box if works perfectly}

Any help
 
i tried it and had no problem,
with the edit enabled or disabled.

try it with one of the demo db apps and see if it works.

Aaron Taylor
John Mutch Electronics
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top