NX Second Development - Set BlockUI dialog title theDialog-> TopBlock () -> FindBlock ( "Dialog") -> GetProperties () -> SetString

The knowledge I did not know that, I looked inside NXOPEN API did not find the corresponding method. So I always thought that can not be changed, but also the others talked, I want to change the text used in the past to change the way dlx file corresponding to the title name.

Today in my QQ group, I saw a group of friends made this. Learning a bit, the way it recorded.

From group Friends: rookie secondary development

theDialog->TopBlock()->FindBlock("Dialog")->GetProperties()->SetString("Label","123456");

I also found one: http://www.nxopen.cn/thread-2597-1-1.html Tangkanglintang work on secondary development forum

Code written initialize_cb dialogShown_cb or two can be, I personally tested the (NX11 + VS2013)

 Caesar Lu Shangyu

2020 March 24

Guess you like

Origin www.cnblogs.com/nxopen2018/p/12563264.html