-3

add a button in the table

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

riteshsahoo's avatar
235
riteshsahoo
asked 2020-07-20 20:38:15 -0500, updated 2020-07-22 19:52:10 -0500
edit flag offensive 0 remove flag close merge delete

Comments

@riteshsahoo what software tool are you using?

Aaron Boranian's avatar Aaron 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's avatar riteshsahoo (2020-07-21 19:58:14 -0500) edit
add a comment see more comments

1 Answer

1

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

macumber's avatar
12k
macumber
answered 2020-07-22 22:35:03 -0500
edit flag offensive 0 remove flag delete 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 (2020-08-05 01:21:18 -0500) 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's avatar macumber (2020-08-22 15:46:26 -0500) edit
add a comment see more comments