<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'How can i  write a component of the kind of ComboBox that...' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'How can i  write a component of the kind of ComboBox that...' posted on the 'Delphi and Kylix' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Tue, 18 Jun 2013 19:40:14 -0700</pubDate>
    <lastBuildDate>Tue, 18 Jun 2013 19:40:14 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>How can i  write a component of the kind of ComboBox that...</title>
      <link>http://www.programmersheaven.com/mb/delphikylix/290524/290524/how-can-i--write-a-component-of-the-kind-of-combobox-that/</link>
      <description>hi,&lt;br /&gt;
How can i  write a component of the kind of ComboBox,  that while i click on dropdown button open the another window and this window closed while i click on another part of the form or desktop.&lt;br /&gt;
I exactly want to implement TDateTimePicker of  Delphi for another usage.&lt;br /&gt;
&lt;br /&gt;
I will become so thankful if lead me or introduce another LINK to me.&lt;br /&gt;
&lt;br /&gt;
Mehrdad Khorsandi.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/delphikylix/290524/290524/how-can-i--write-a-component-of-the-kind-of-combobox-that/</guid>
      <pubDate>Sun, 30 Jan 2005 23:17:28 -0700</pubDate>
      <category>Delphi and Kylix</category>
    </item>
    <item>
      <title>Re: How can i  write a component of the kind of ComboBox that...</title>
      <link>http://www.programmersheaven.com/mb/delphikylix/290524/290537/re-how-can-i--write-a-component-of-the-kind-of-combobox-that/#290537</link>
      <description>: hi,&lt;br /&gt;
: How can i  write a component of the kind of ComboBox,  that while i click on dropdown button open the another window and this window closed while i click on another part of the form or desktop.&lt;br /&gt;
: I exactly want to implement TDateTimePicker of  Delphi for another usage.&lt;br /&gt;
: &lt;br /&gt;
: I will become so thankful if lead me or introduce another LINK to me.&lt;br /&gt;
: &lt;br /&gt;
: Mehrdad Khorsandi.&lt;br /&gt;
: &lt;br /&gt;
You can do this in 2 ways: a container control and a descendant of the TCustomComboBox.&lt;br /&gt;
&lt;br /&gt;
Container Control: create a new control, which holds a speedbutton for the dropdown button and an edit to enter the text. Then expose the necessary properties and events to the container control. The container control can implement the speedbutton's OnClick() event to show the dropdown form and handle the selection procedure.&lt;br /&gt;
&lt;br /&gt;
Descendant of the TCustomComboBox: for this you need to create a duplicate of the CNCommand() message handler. Next to that you also need to override/duplicate several other methods to alter its behaviour. The CBN_DropDown message should show the dropdown form and handle the selection procedure.&lt;br /&gt;
&lt;br /&gt;
In both cases you should check if the dropdown form loses its focus, so you'll know when to hide the form.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/delphikylix/290524/290537/re-how-can-i--write-a-component-of-the-kind-of-combobox-that/#290537</guid>
      <pubDate>Mon, 31 Jan 2005 00:45:34 -0700</pubDate>
      <category>Delphi and Kylix</category>
    </item>
  </channel>
</rss>