Question-and-Answer Resource for the Building Energy Modeling Community
Get s tarted with the Help page
Ask Your Question

add a button in the table

asked 2020-07-20 20:38:15 -0600

riteshsahoo gravatar image

updated 2020-07-22 19:52:10 -0600

I want to add a click button ... similar to the checkbox and open a window to make some selection and then return the text to display in the grid view ...

There is no function to add the button in the table in gridview ... please helpimage description

edit retag flag offensive close merge delete


@riteshsahoo what software tool are you using?

Aaron Boranian gravatar image Aaron Boranian  ( 2020-07-21 07:39:39 -0600 )edit

I want to place a push button here to open a dialog in the table in the openstudio ... like in the image

riteshsahoo gravatar image riteshsahoo  ( 2020-07-21 19:58:14 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2020-07-22 22:35:03 -0600

You would have to edit the source code for the OpenStudio Application. The source code is available here

edit flag offensive delete link more


I found the code for the checkbox in OSGridController.hpp

template<typename datasourcetype=""> void addCheckBoxColumn(const Heading &heading, const std::string & tooltip, std::function<bool(datasourcetype *)&gt;="" t_getter,="" std::function<bool(datasourcetype="" *,="" bool)&gt;="" t_setter,="" const="" boost::optional<datasource=""> &t_source = boost::none) { can you help me about changing for a button ?

riteshsahoo gravatar image riteshsahoo  ( 2020-08-05 01:21:18 -0600 )edit

It's a bit of a learning curve but the first step would be to download the source code and build the application yourself. Here are build instructions. Once you are able to build the application, you can modify the code, rebuild it, and test your changes.

macumber gravatar image macumber  ( 2020-08-22 15:46:26 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer


Question Tools

1 follower


Asked: 2020-07-20 20:38:15 -0600

Seen: 278 times

Last updated: Jul 22 '20