Showing results for 
Search instead for 
Do you mean 
Reply

Diable hide Apply/Ok in BlockStyler

Hi, I have a string & cursorlocation blocks in Blockstyler. I have a stepstatus property in cursorlocation without which OK,Apply buttons will not be activated, I was looking something similar in string block but couldnt find anything. Now i am thinking to disable Apply/Ok button when there is no string . I was looking at theDialog->Show(BlockDialog:Smiley Very HappyialogMode:Smiley Very HappyialogModeEdit); theDialog->Show(BlockDialog:Smiley Very HappyialogMode:Smiley Very HappyialogModeCreate);//this will hide Apply, what about OK? I have enum & toggle also in the UI can these disable/hide Apply/OK button ? TAK
1 REPLY

Re: Diable hide Apply/Ok in BlockStyler

The way to handle this is to override the EnableOKButton() callback method that BlockDialog has. In your override method you simply put any logic in you require to decide if OK and Apply buttons should be active or not and return true or false (true=OK & Apply will be active, false=OK & Apply will not be active).

Graham Inchley Snr R&D Engineer (Systems Development), Sandvik Coromant
Lenovo ThinkPad W540, Win7, 16GB. Developing in: Java | C | C# | KF
Production: NX8.5.3.3 MP11 64bit Testing: NX9.0.2.5