c# - How to change the name of petrel window programatically -


this question has answer here:

i trying make petrel plugin demands output in form of function graphs , histograms. can name function windows programatically?

yes can rename functionwindow using inameinfofactory.

            inameinfofactory namefactory = (null != funcwindow) ? coresystem.getservice<inameinfofactory>(funcwindow) : null;             var nameinfo = (null != namefactory) ? namefactory.getnameinfo(funcwindow) : null;             if (null != nameinfo && nameinfo.canchangename)             {                 nameinfo.name = windowname;             } 

Comments

Popular posts from this blog

design - Custom Styling Qt Quick Controls -

Unable to remove the www from url on https using .htaccess -