NX Open C++ Reference Guide
Public Types | Public Member Functions | List of all members
NXOpen::NXMessageBox Class Reference

Displays message box. More...

Public Types

enum  DialogType { DialogTypeError, DialogTypeWarning, DialogTypeInformation, DialogTypeQuestion }
 Describes type of message box. More...
 

Public Member Functions

int Show (const NXString &title, NXOpen::NXMessageBox::DialogType msgboxType, const NXString &message)
 Show message box.
 
int Show (const char *title, NXOpen::NXMessageBox::DialogType msgboxType, const char *message)
 Show message box.
 
int Show (const NXString &title, NXOpen::NXMessageBox::DialogType msgboxType, std::vector< NXString > &messages)
 Show message box.
 
int Show (const char *title, NXOpen::NXMessageBox::DialogType msgboxType, std::vector< NXString > &messages)
 Show message box.
 
tag_t Tag () const
 Returns the tag of this object.
 

Detailed Description

Displays message box.

Note: The number of lines displayed in the message box can vary based on Operating System and Screen Resolution
To obtain an instance of this class, refer to UI

Created in NX5.0.0.

Member Enumeration Documentation

Describes type of message box.

Enumerator:
DialogTypeError 

Error.

DialogTypeWarning 

Warning.

DialogTypeInformation 

Informattion.

DialogTypeQuestion 

Question.

Member Function Documentation

int NXOpen::NXMessageBox::Show ( const NXString title,
NXOpen::NXMessageBox::DialogType  msgboxType,
const NXString message 
)

Show message box.

Returns
Return value from Message Box. If of type NXMessageBox::DialogTypeQuestion then the value will be 1 for yes or 2 for no. Otherwise the returned value will be -2.
Created in NX5.0.0.

License requirements : None
Parameters
titleTitle
NOTE: The full Unicode character set is not supported for this parameter.
msgboxTypeMessage box type
messageMessage
NOTE: The full Unicode character set is not supported for this parameter.
int NXOpen::NXMessageBox::Show ( const char *  title,
NXOpen::NXMessageBox::DialogType  msgboxType,
const char *  message 
)

Show message box.

Returns
Return value from Message Box. If of type NXMessageBox::DialogTypeQuestion then the value will be 1 for yes or 2 for no. Otherwise the returned value will be -2.
Created in NX5.0.0.

License requirements : None
Parameters
titleTitle
NOTE: The full Unicode character set is not supported for this parameter.
msgboxTypeMessage box type
messageMessage
NOTE: The full Unicode character set is not supported for this parameter.
int NXOpen::NXMessageBox::Show ( const NXString title,
NXOpen::NXMessageBox::DialogType  msgboxType,
std::vector< NXString > &  messages 
)

Show message box.

Returns
Return value from Message Box. If of type NXMessageBox::DialogTypeQuestion then the value will be 1 for yes or 2 for no. Otherwise the returned value will be -2.
Created in NX5.0.0.

License requirements : None
Parameters
titleTitle
NOTE: The full Unicode character set is not supported for this parameter.
msgboxTypeMessage box type
messagesMulti-line message
NOTE: The full Unicode character set is not supported for this parameter.
int NXOpen::NXMessageBox::Show ( const char *  title,
NXOpen::NXMessageBox::DialogType  msgboxType,
std::vector< NXString > &  messages 
)

Show message box.

Returns
Return value from Message Box. If of type NXMessageBox::DialogTypeQuestion then the value will be 1 for yes or 2 for no. Otherwise the returned value will be -2.
Created in NX5.0.0.

License requirements : None
Parameters
titleTitle
NOTE: The full Unicode character set is not supported for this parameter.
msgboxTypeMessage box type
messagesMulti-line message
NOTE: The full Unicode character set is not supported for this parameter.
tag_t NXOpen::NXMessageBox::Tag ( ) const

Returns the tag of this object.


The documentation for this class was generated from the following file:
Copyright 2013 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.