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

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 NXOpen::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
msgboxTypeMessage box type
messageMessage
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
msgboxTypeMessage box type
messageMessage
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
msgboxTypeMessage box type
messagesMulti-line message
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
msgboxTypeMessage box type
messagesMulti-line message
tag_t NXOpen::NXMessageBox::Tag ( ) const

Returns the tag of this object.


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