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 2020-07-20 20:38:15 -0500

riteshsahoo gravatar image

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

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

Comments

@riteshsahoo what software tool are you using?

Aaron Boranian gravatar imageAaron Boranian ( 2020-07-21 07:39:39 -0500 )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 imageriteshsahoo ( 2020-07-21 19:58:14 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

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

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

edit flag offensive delete link more

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 gravatar imageriteshsahoo ( 2020-08-05 01:21:18 -0500 )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

Stats

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

Seen: 239 times

Last updated: Jul 22