A return of the "show in contents" button would be most helpful.  That would 
allow me to find where a page is located in the documentation regardless of how 
I arrived there.


Matt





From: [email protected] 
[mailto:[email protected]] On Behalf Of Min Rui Tan
Sent: Friday, June 14, 2013 12:05 AM
To: [email protected]
Subject: RE: GridData siGridWidgetColumnType enums

Yes, the Button, File dialog, etc types are all officially added in 2014.

The "show in contents" is only available for the programmer's guide part of the 
docs.
The API docs do not have such a link.

I probably found the page from the PPGEvent page..

Good point, the GridData guide should probably link to the examples. I'll check 
if the docs people can update it.

Regards,
Min Rui


From: 
[email protected]<mailto:[email protected]>
 [mailto:[email protected]] On Behalf Of Matt Lind
Sent: Friday, June 14, 2013 2:44 PM
To: [email protected]<mailto:[email protected]>
Subject: RE: GridData siGridWidgetColumnType enums

This must be new to 2014 because I don't see it anywhere in the 2013 
documentation.

Also, how did you get to this page?  There are no feeding links to the page and 
the 'show in contents' button isn't available to show the page in the table of 
contents.  The GridData page doesn't have a direct link to the examples either.

Thanks,

Matt




From: 
[email protected]<mailto:[email protected]>
 [mailto:[email protected]] On Behalf Of Min Rui Tan
Sent: Thursday, June 13, 2013 8:02 PM
To: [email protected]<mailto:[email protected]>
Subject: RE: GridData siGridWidgetColumnType enums

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: 
[email protected]<mailto:[email protected]>
 [mailto:[email protected]] On Behalf Of Matt Lind
Sent: Friday, June 14, 2013 5:05 AM
To: [email protected]<mailto:[email protected]>
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: 
[email protected]<mailto:[email protected]>
 [mailto:[email protected]] On Behalf Of Min Rui Tan
Sent: Wednesday, June 12, 2013 6:48 PM
To: [email protected]<mailto:[email protected]>
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: 
[email protected]<mailto:[email protected]>
 [mailto:[email protected]] On Behalf Of Matt Lind
Sent: Thursday, June 13, 2013 4:51 AM
To: [email protected]<mailto:[email protected]>
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

Reply via email to