f
f
Apple Store
Global SectionArticlesBookstoreDictionaryDownloadsDVDsEventsForumsGalleryJob ListingsNewsNewslettersSchools
USER: PASS:  Login  Register

Subscribe
Site Links
Home > Shake > FAQs > Shake SDK FAQ > On-screen Controls / UI Plug-ins > How can I display a simple dialog to the user? Change background colorChange background colorChange background colorChange background color
On-screen Controls / UI Plug-ins Shake SDK FAQ for Shake


Posted On:  06/15/05   By:  admin  

Question:

How can I display a simple dialog to the user?

Answer:

The NRiModalWin class implements functionality for creating basic modal dialogs. Dialogs are launched using the NRiModalWin::simpleModal() static member functions.  At its most basic level, the NRiModalWin class creates a modal dialog with two buttons that can be labeled (e.g. Ok and Cancel). The return value of the NRiModalWin::simpleModal() function is the index of the button the user selected.

Developers can optionally add a child widget to display/retrieve additional info from user (except for NRiDropMenus). However, when the dialog is killed, the child widgets die with the dialog, so to retrieve values from the child widget, we must create a temporary storage plug that we connect to the child widgets value plug.

See simpleDialog.cpp in the Shake 4 SDK package.

Related Learning Tools
Shake Related DVDs

No Results.
Shake Related Books



The Art and Science of Digital Compositing
Global DVDs



Shake: Tracking and Transforms


Sponsors

Sponsor

Contact Us | Post Jobs | Post News | Post Events