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

add a button in the table

asked 4 years ago

riteshsahoo's avatar

updated 4 years ago

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

Preview: (hide)

Comments

@riteshsahoo what software tool are you using?

Aaron Boranian's avatar Aaron Boranian  ( 4 years ago )

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

riteshsahoo's avatar riteshsahoo  ( 4 years ago )

1 Answer

Sort by » oldest newest most voted
1

answered 4 years ago

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

Preview: (hide)
link

Comments

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's avatar riteshsahoo  ( 4 years ago )

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's avatar macumber  ( 4 years ago )

Your Answer

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

Add Answer

Training Workshops

Careers

Question Tools

1 follower

Stats

Asked: 4 years ago

Seen: 362 times

Last updated: Jul 22 '20