<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7226.0">
<TITLE>RE: [DUG] DB Combo Boxes</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>I believe I have that but have found a number that most of the time the values are correct. Scrolling forward show most but when a blank appears, if I scroll to the next one and then back again, it then displays correctly. Dropping down the combobox also display the correct value but does not display it in the actual box. Also created a hidden label to put in a correct looked up value also the always makes the combobox display the correct entry and displaying the full list in a list box always highlights the correct entry.</FONT></P>
<BR>
<P><FONT SIZE=2>Regards</FONT>
<BR><FONT SIZE=2>Eion McIntosh</FONT>
<BR><FONT SIZE=2>PPCS Ltd</FONT>
</P>
<BR>
<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: delphi-bounces@ns3.123.co.nz</FONT>
<BR><FONT SIZE=2>[<A HREF="mailto:delphi-bounces@ns3.123.co.nz">mailto:delphi-bounces@ns3.123.co.nz</A>]On Behalf Of Rohit Gupta</FONT>
<BR><FONT SIZE=2>Sent: Friday, September 16, 2005 4:56 PM</FONT>
<BR><FONT SIZE=2>To: NZ Borland Developers Group - Delphi List</FONT>
<BR><FONT SIZE=2>Subject: Re: [DUG] DB Combo Boxes</FONT>
</P>
<BR>
<P><FONT SIZE=2>I dont use the plain vanilla components, having fixed most problems in </FONT>
<BR><FONT SIZE=2>descendant controls a long time ago. However, from fading memory I </FONT>
<BR><FONT SIZE=2>believe that in the changeevent of the first field you populate the </FONT>
<BR><FONT SIZE=2>second cbx and then set the text to what the value should be. This </FONT>
<BR><FONT SIZE=2>aligns the guts correctly.</FONT>
</P>
<P><FONT SIZE=2>Eion McIntosh (Christchurch) wrote:</FONT>
</P>
<P><FONT SIZE=2>> Hi</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> I'm getting highly frustrated at an app where we are trying to use DB </FONT>
<BR><FONT SIZE=2>> combo boxes and the display name is not always appearing even though </FONT>
<BR><FONT SIZE=2>> the value is set correctly.</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> We have a master table to two fields on it and one combo list links </FONT>
<BR><FONT SIZE=2>> with 1 field and the other links with another field, but display only </FONT>
<BR><FONT SIZE=2>> a subset based on the what has been set from the first combo list.</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> Scrolling through the main table updates the two combo boxes with the </FONT>
<BR><FONT SIZE=2>> correct name buy sometimes it doesn't display the name at all but if </FONT>
<BR><FONT SIZE=2>> you click on the dropdown arrow the correct value is highlighted only </FONT>
<BR><FONT SIZE=2>> is does not display.</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> Any ideas please, using D6.</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> Regards</FONT>
<BR><FONT SIZE=2>> Eion McIntosh</FONT>
<BR><FONT SIZE=2>> PPCS Ltd</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>>------------------------------------------------------------------------</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>>_______________________________________________</FONT>
<BR><FONT SIZE=2>>Delphi mailing list</FONT>
<BR><FONT SIZE=2>>Delphi@ns3.123.co.nz</FONT>
<BR><FONT SIZE=2>><A HREF="http://ns3.123.co.nz/mailman/listinfo/delphi">http://ns3.123.co.nz/mailman/listinfo/delphi</A></FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>></FONT>
</P>
<P><FONT SIZE=2>_______________________________________________</FONT>
<BR><FONT SIZE=2>Delphi mailing list</FONT>
<BR><FONT SIZE=2>Delphi@ns3.123.co.nz</FONT>
<BR><FONT SIZE=2><A HREF="http://ns3.123.co.nz/mailman/listinfo/delphi">http://ns3.123.co.nz/mailman/listinfo/delphi</A></FONT>
</P>
</BODY>
</HTML>