How to crate a shrink menu property?

How to create a shrink menu property like robot’s “Actions Configuration”?

 

Can anyone help me answer this question?Is this also necessary to use the .NTE API?