Quantcast
Channel: Adobe Community : Popular Discussions - InDesign SDK
Viewing all articles
Browse latest Browse all 78596

How to Add values to dropdown list in runtime

$
0
0
Hi All

I wanted to add the items to the dropdown list in the plugin.

The SDK Example WriteFishPrice shows the items are hard coded in the .fr file.

i am looking for a similar concept, but not adding the items in the .fr file, i wanted to add the items in the .cpp or .h files and add the items to the dropdownlist.

DECLARE_PMID(kWidgetIDSpace, kWFPDropDownListWidgetID, kWFPPrefix + 2)
The declaration is done in WFPID.h file

#define kWFPDropDownItem_1Key kWFPStringPrefix "kWFPDropDownItem_1Key"

defining the string is done in WFPID.h

I wanted to add the items in the same header file, is there any way that i can add the items in the header files instead of adding in .fr file

Please guide me

Thank you

-Srinivas

Viewing all articles
Browse latest Browse all 78596

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>