Embed an icon in TComboBox (similar to that of Mozilla Firefox) lazarus / 31-LCL ---------------------------------------------------------------------- JD · 2015-02-27 13:36 Hi there everyone, I'm trying to embed a search icon in a TComboBox so that the user can select an item from the combobox & then search for it by clicking on the embedded search icon. Has anyone already done this or does anyone know how this can be done? Thanks JD ---------------------------------------------------------------------- taazz · 2015-02-28 16:16 drop a panel in your form and set its border to none, drop a shape in the panel, change its size to cover all the panel and change its anchors to have all four the corners true. Drop an edit in the panel set its alignment to alclient and set the border space to 1 all around or 2 so the shape behind is visible. Drop a bitbtn and set its align to alright and the border spacing to the same amount of the edit. That should cover the most generic use of a search box that you see on top of firefox this days, take a look on the synedit code especially the completion proposal for a drop list implementation and change it to look like a list window instead a popup window that is now and you are ready to go. ---------------------------------------------------------------------- JD · 2015-04-07 09:33 Quote from: taazz on February 28, 2015, 05:16:25 pmdrop a panel in your form and set its border to none, drop a shape in the panel, change its size to cover all the panel and change its anchors to have all four the corners true. Drop an edit in the panel set its alignment to alclient and set the border space to 1 all around or 2 so the shape behind is visible. Drop a bitbtn and set its align to alright and the border spacing to the same amount of the edit. That should cover the most generic use of a search box that you see on top of firefox this days, take a look on the synedit code especially the completion proposal for a drop list implementation and change it to look like a list window instead a popup window that is now and you are ready to go. Thanks a lot taazz. I tried it & later changed the bitbutton to a speedbutton so that I could give it a flat look. Thanks again for taking the time to send a response to my question.