User forums > Help

Code completion does not list enum members

<< < (2/3) > >>

oBFusCATed:
Does

--- Code: ---enum T_TR_SCROLL_DYN
{
    DYN_NO_DISPLAY = 0,
    DYN_SELECTED,
    DYN_HIGHLIGHTED,
    DYN_NONE,

};

--- End code ---

work?

alberto:
It only works if I type the defined name as above or the variable name as in my example if I add the :: after. Or is this how it is supposed to work? It's just that you need to know that its an enum (often there are too many to remember) and also remove the :: after you've chosen the corrrect definition.

alberto:
Apologies if I'm being too pedantic, its probably a feature from CodeWright, hence why I'm expecting it to provide the list.

oBFusCATed:
I think the correct behavior should be:
user types DYN| presses ctrl+space and the members of the enum are there.

I'm not sure, what has been implemented, though.
You've not said if there is any difference using "enum T_TR_SCROLL_DYN {};" and "typedef enum {} T_TR_SCROLL_DYN;"
In the past the "typedef enum/struct" was not supported.

alberto:
Hi, yeah that would assume you already know the member names, likewise typing :: after the name assumes you know you're dealing with an Enum.

The behaviour is the same for both examples, typedef and direct definition. You need to type :: to get the member names.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version