Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

UI STYLER - Radio Button 1

Status
Not open for further replies.

auest123a

Computer
Mar 25, 2011
4
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?
 
Replies continue below

Recommended for you

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

Marc
NX Software Developer
 
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!
 
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
 
I need it in UI Styler. It will be great if you could provide me both UI Styler & Block Styler.

Thanks!
 
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
 
 http://files.engineering.com/getfile.aspx?folder=0371c3d7-166b-429a-baf9-c38905f8b715&file=UI_STYLER_-_Radio_Button.zip
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 :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor