×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Nx 8.5 Block UI Styler - How to create a block whose appearance depends on the chosen option?

Nx 8.5 Block UI Styler - How to create a block whose appearance depends on the chosen option?

Nx 8.5 Block UI Styler - How to create a block whose appearance depends on the chosen option?

(OP)
Hi everyone,

I want to create a block for my tool. I have two different options to create my tool and I would like the appearance of the block to change depends on the chosen option (the same as it is in Nx for example for with block creation tool - block looks different for different type). Do you think it is possible? How to do it? I can't find that option.

RE: Nx 8.5 Block UI Styler - How to create a block whose appearance depends on the chosen option?

The best way is to design your dialog with all of the blocks you want, then show/hide some of them using the setShow() method.
Should the dialog change based on some input the user makes on the dialog (clicking a radio button etc)? Or should it be based on some values it finds from the model?
Either way, use the setShow() method on the blocks to show/hide the different ones making the dialog change as required.

RE: Nx 8.5 Block UI Styler - How to create a block whose appearance depends on the chosen option?

(OP)
Yes the dialog should change based on an input the user makes on the dialog. Thank you for the answer! Hopefully I'll accomplish it now...

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources