- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I am trying to find a way to extract the Display Name property from custom-declared component type:
Here is "my_type" is a custom-declared type holding enumerated elements: Name: t1 (t2); Value: 1 (2), and Display Name: "AAA" ("BBB") accordingly. Parameter "my_Label" is assigned a Type of "my_type" and default Value of 1 (Display Name = "AAA").
Now in the header file I can access the parameter my_Label Value using evaluator `$my_Label` (=1) , and extract the element Name ("t1") using API function:
GetNameForEnum("my_Label", 1).
Q. How can I extract the property Display Name ("AAA") from parameter my_Label?
/odissey1
...
Solved! Go to Solution.
- Labels:
-
PSoC Creator Software
- Tags:
- basic dialog
- component properties
- display name
- enumeration types
- getnameforenum
- name for enumeration
- parameters definition
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
odissey1
You can try using the ResolveEnumIdToDislay() API to extract the Display Name. The details about this are given in the PSoC Creator Customization API Reference Guide (In PSoC Creator goto, Help > Documentation > Customizer API Reference guide)
Best Regards
Ekta