cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Streamline your workflows and master BIM coordination! Program starts April 28!

Archicad C++ API
About Archicad add-on development using the C++ API.
SOLVED!

Archicad Search Bar

RobDev
Contributor

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:

searchbar.png

 

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

1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Miklos Vegh
Graphisoft

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.

View solution in original post

1 REPLY 1
Solution
Miklos Vegh
Graphisoft

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.