×
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

UI STYLER - Radio Button

UI STYLER - Radio Button

UI STYLER - Radio Button

(OP)
I am a beginner and want a sample code for reading the input from a radio button in UI Styler using C/C++ code. Can anyone help me?

RE: UI STYLER - Radio Button

I can try. What's on your mind? Which NX version? Which language exactly - C or C++?

Marc
NX Software Developer
 

RE: UI STYLER - Radio Button

(OP)
I am doing it in VC++ in Visual Studio. I am using NX 6.0. I want to use a radio button with suppose four items(say item1,item2,..,item4) and on selecting anyone of them and a press of ok I want to perform some activities on the basis of option selected.
Can you provide me with a small sample application and also explain the important lines of code as I am doing self learning and could not find enough resources over internet.

Thanks in advance!

RE: UI STYLER - Radio Button

Have you considered using the BlockStyler? It is much easier to code and it will end up looking like the standard dialogs in NX.

Marc
NX Software Developer
 

RE: UI STYLER - Radio Button

(OP)
I need it in UI Styler. It will be great if you could provide me both UI Styler & Block Styler.

Thanks!

RE: UI STYLER - Radio Button

Here we go... a working example for NX6 32bit written in C using Visual Studio 2005.

If you are looking for additional examples, I highly recommend searching for some in GTAC (if you have an account). They have a very large collection of simple examples from which you can learn. Perhaps you will find a similiar example to the one I have provided for the BlockStyler alternative.

If you found this example useful, I would appreciate it if you could mark this reply as "useful", thank you!

HOW TO USE:
1. The project is already built; you will have to edit the file "run.bat" and change the location of where NX6 is installed. The enviroment is necessary for NX to find the dialog file (radio_buttons.dlg).
2. Start "run.bat".
3. In NX, press Ctlr+U and select "ui_styler_radio_button.dll", then press OK to run the sample application.

The most important code is in the source file radio_buttons_template.c, particularily functions named *_cb.

I hope you are able to work off this example!

Marc
NX Software Developer
 

RE: UI STYLER - Radio Button

(OP)
Marc,
I had a look at the sample application and I guess it should work for me. I have not executed it so far though it looks fine to my eyes. In case of any issues i might trouble you again. Dont mind!

Thanks for your timely support :)
 

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