fatdogs81
Mechanical
- Sep 22, 2014
- 22
I'm using nx7.5, C#(.NET Framework 3.5)
I made 2 toggle boxes with by below code.
toggle0 = (NXOpen.BlockStyler.UIBlock)theDialog.TopBlock.FindBlock("toggle0");
toggle1 = (NXOpen.BlockStyler.UIBlock)theDialog.TopBlock.FindBlock("toggle0");
I want... if toggle0 is checked, then toggle1 is disabled.
Please let me know what code should be inserted.
Below is update callback in my code.
public int update_cb(NXOpen.BlockStyler.UIBlock block)
{
try
{
if (block == toggle0)
{
[Disable toggle1 code here]
}
if (block == toggle1)
{
}
}
catch (Exception ex)
{
//---- Enter your exception handling code here -----
theUI.NXMessageBox.Show("Block Styler", NXMessageBox.DialogType.Error, ex.ToString());
}
return 0;
}
Thanks in advance for your help.
I made 2 toggle boxes with by below code.
toggle0 = (NXOpen.BlockStyler.UIBlock)theDialog.TopBlock.FindBlock("toggle0");
toggle1 = (NXOpen.BlockStyler.UIBlock)theDialog.TopBlock.FindBlock("toggle0");
I want... if toggle0 is checked, then toggle1 is disabled.
Please let me know what code should be inserted.
Below is update callback in my code.
public int update_cb(NXOpen.BlockStyler.UIBlock block)
{
try
{
if (block == toggle0)
{
[Disable toggle1 code here]
}
if (block == toggle1)
{
}
}
catch (Exception ex)
{
//---- Enter your exception handling code here -----
theUI.NXMessageBox.Show("Block Styler", NXMessageBox.DialogType.Error, ex.ToString());
}
return 0;
}
Thanks in advance for your help.