Jump to content

HDK: File chooser - only certain extensions ?


Recommended Posts

  • 1 year later...
static const char* theDsFile = R"THEDSFILE(
{
    name        parameters
	parm {
				name    "shpfile"      // Internal parameter name
				label   "SHP File" // Descriptive parameter name for user interface
				type    file
				default { "" }     // Default for this parameter on new nodes
				parmtag { "autoscope" "0000000000000000" }
				parmtag { "filechooser_pattern" "*.shp" }
				parmtag { "import_token" "shp_file" }
			}
}
)THEDSFILE";

most important is "parmtag { "filechooser_pattern" "*.shp" }"

you can change *.shp to any format you want

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...