Tried _OnButtonClicked? <property_name>_<parameter_name>_OnButtonClicked
http://download.autodesk.com/global/docs/softimage2014/en_us/sdkguide/SI_CMDS/cb_GridData_OnButtonClicked.html with sample code =) From: softimage-boun...@listproc.autodesk.com [mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Matt Lind Sent: Friday, June 14, 2013 5:05 AM To: softimage@listproc.autodesk.com Subject: RE: GridData siGridWidgetColumnType enums So how do I set this up in a scripted environment using Jscript? Jscript doesn't use the PPGEvent object. Using traditional Jscript logic of putting the parameter name in the callback function's name doesn't seem to work. That is, if the grid parameter is called "data", then data_OnClicked() doesn't get called when the button in the griddata is clicked. Same problem if I use the button name in the callback. Example: if a cell is given the value of "button" and it is clicked, then button_Onclicked() is never called. Thanks, Matt From: softimage-boun...@listproc.autodesk.com [mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Min Rui Tan Sent: Wednesday, June 12, 2013 6:48 PM To: softimage@listproc.autodesk.com Subject: RE: GridData siGridWidgetColumnType enums For siColumnButton, event goes with the Grid's PPGEvent. Check for the siGridDataOnButtonClicked eventContext. With siColumnFile, you can do a GridData::SetFileColumnDef. You can specify File/Folder, StartupPath and file type filter. You can check the GridData (GridDataExampleCPP) example in the default SDK workgroup for some sample code. Regards, Min Rui From: softimage-boun...@listproc.autodesk.com<mailto:softimage-boun...@listproc.autodesk.com> [mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Matt Lind Sent: Thursday, June 13, 2013 4:51 AM To: softimage@listproc.autodesk.com<mailto:softimage@listproc.autodesk.com> Subject: GridData siGridWidgetColumnType enums I was just looking up the siGridWidgetColumnType enums for the GridData object as I was modifying some old code. While doing so I noticed a plethora of options to dress up a grid data cell. The items that catch my attention are siColumnButton and siColumnFile. In the case of siColumnButton, are there any callbacks available when the button is clicked? Otherwise, what's the point? In case of siColumnFile, why does the popup dialog ask for a folder and not a file? Any way to get the folder dialog to be a file dialog AND default to opening to the path specified in the cell? Thanks, Matt
<<attachment: winmail.dat>>