2025-04-08 11:02 AM
Hi all,
I'm looking to create a search bar for my dialog similar to the image below, basically the same kind of search bar as found in Archicad:
I'm able to create a simple text edit to emulate what I'm looking for, but it's missing the persistent magnifying glass and the X on the right. Is it possible to add these to a text edit or use a different type of control to get this result?
Thanks,
Rob
Solved! Go to Solution.
2025-04-14 05:21 PM
You can add a DG::SearchEdit control to your dialog to achieve this (please see DGEditControl.hpp). Use a TextEdit entry in the resource for this control.
You can add some info hint that appears with gray color when the edit control is empty by calling the SetVariousText(...) function.
2025-04-14 05:21 PM
You can add a DG::SearchEdit control to your dialog to achieve this (please see DGEditControl.hpp). Use a TextEdit entry in the resource for this control.
You can add some info hint that appears with gray color when the edit control is empty by calling the SetVariousText(...) function.