Enabling OK,Apply buttons in UI Styler

Forums: 

Hi,
I have recently started SNAP . I have a problem in Disable and Enable the OK, Apply buttons in UI Styler it seems to be silly but I hope I can get a solution for this!!!

Thanks in Advance

I'm not sure what you're trying to do. A sample of your code would be helpful. SNAP does not provide a lot of detailed control over the behaviour of a dialog. If you need this sort of control, you need to get the underlying NXOpen.BlockStyler.BlockDialog object, which gives you a lot more freedom. LIke this ...

Dim snapDialog As Snap.UI.BlockDialog = ...
Dim nxopenDialog As NXOpen.BlockStyler.BlockDialog = snapDialog.NXOpenBlockDialog

Then you can do things like:

nxopenDialog.PerformApply
nxopenDialog.AddEnableOKButtonHandler()

Thanks for your Reply I got the solution. Trying to write a simple program basically I am into AutoCAD Programming recently came to this NX. Further quires I will post here.