NX Open C++ Reference Guide
|
Represents a DialogItem for UI Styler. More...
Public Member Functions | |
void | AddApplyHandler (const NXOpen::UIStyler::DialogItem::Apply &applyevent, bool isDialogLaunchingEvent) |
Registers apply callback. | |
void | AddBackHandler (const NXOpen::UIStyler::DialogItem::Back &backevent, bool isDialogLaunchingEvent) |
Registers back callback. | |
void | AddCancelHandler (const NXOpen::UIStyler::DialogItem::Cancel &cancelevent, bool isDialogLaunchingEvent) |
Registers cancel callback. | |
void | AddConstructHandler (const NXOpen::UIStyler::DialogItem::Construct &constructevent, bool isDialogLaunchingEvent) |
Registers construct callback. | |
void | AddDestructHandler (const NXOpen::UIStyler::DialogItem::Destruct &destructevent, bool isDialogLaunchingEvent) |
Registers destruct callback. | |
void | AddFileOperationHandler (const NXOpen::UIStyler::DialogItem::FileOperation &fileoperationevent, bool isDialogLaunchingEvent) |
Registers file operation callback. | |
void | AddOkayHandler (const NXOpen::UIStyler::DialogItem::Okay &okayevent, bool isDialogLaunchingEvent) |
Registers ok callback. | |
NXOpen::UIStyler::FileOperationData * | FileOperationData () |
Returns the file operation data Created in NX5.0.0. | |
NXOpen::SelectionHandle * | GetSelectionHandle () |
Gets the selection handle for a given dialog item. | |
void | SetNavigationSensitivity (NXOpen::UIStyler::DialogItem::DialogItemIndex subItemIndex, bool type) |
Specifies the sensitivity of the navigation buttons at the bottom of the dialog. | |
void | SetResize (bool type) |
Specifies wether dialog is allowed to resize Created in NX5.0.0. | |
void | SetSensitivity (bool type) |
Specifies the sensitivity of the dialog. | |
void | SetTitle (const NXString &strLabel) |
Specifies a string to display on the top border of the dialog Created in NX5.0.0. | |
void | SetTitle (const char *strLabel) |
Specifies a string to display on the top border of the dialog Created in NX5.0.0. | |
void | SetWidth (int width) |
Specifies the pixel width for the dialog. | |
![]() | |
NXOpen::UIStyler::StylerItem::ItemType | GetItemType () |
Gets the dialog item type. | |
NXOpen::UIStyler::Attachment * | InitializeAttachment () |
Returns initialized dialog item attachment information. | |
bool | IsEqualTo (NXOpen::UIStyler::StylerItem *itemToCompare) |
Equates two styler items. | |
void | SetAttachment (NXOpen::UIStyler::Attachment *attachment) |
Specifies the updated dialog item attachment information Created in NX5.0.0. | |
virtual | ~StylerItem () |
Free resources associated with the instance. | |
![]() | |
void * | GetHandle () |
Handle of the internal object represented by this object. | |
Represents a DialogItem for UI Styler.
Created in NX5.0.0.
typedef NXOpen::Callback1<NXOpen::UIStyler::DialogState, NXOpen::UIStyler::StylerEvent *> NXOpen::UIStyler::DialogItem::Apply |
Called when a dialog user clicks Apply or \<Ctrl\>MB2 anywhere in NX or presses the Apply's
keyboard accelerator as defined in the resource file.
Apply callbacks should not terminate the dialog and always return UF_UI_CB_CONTINUE_DIALOG.
Created in NX5.0.0.
License requirements : None
typedef NXOpen::Callback1<NXOpen::UIStyler::DialogState, NXOpen::UIStyler::StylerEvent *> NXOpen::UIStyler::DialogItem::Back |
Called when a dialog user clicks Back \<Shift\>MB2 anywhere in NX or presses Back's keyboard accelerator
as defined in the resource file.
Back callbacks should terminate the dialog and always return UF_UI_CB_EXIT_DIALOG.
Created in NX5.0.0.
License requirements : None
typedef NXOpen::Callback1<NXOpen::UIStyler::DialogState, NXOpen::UIStyler::StylerEvent *> NXOpen::UIStyler::DialogItem::Cancel |
Called when a dialog user clicks Cancel or \<Alt\>MB2 anywhere in NX or presses Cancel's keyboard accelerator
as defined in the resource file.Cancel callbacks should terminate the dialog and always return UF_UI_CB_EXIT_DIALOG.
Created in NX5.0.0.
License requirements : None
typedef NXOpen::Callback1<NXOpen::UIStyler::DialogState, NXOpen::UIStyler::StylerEvent *> NXOpen::UIStyler::DialogItem::Construct |
Called when the dialog displays.
You can use the Constructor callback to set up dialog item attributes such as populating a list or setting the sensitivity of a dialog item.
Created in NX5.0.0.
License requirements : None
typedef NXOpen::Callback1<NXOpen::UIStyler::DialogState, NXOpen::UIStyler::StylerEvent *> NXOpen::UIStyler::DialogItem::Destruct |
Called when the dialog closes.
Use the Destructor callback to perform cleanup.
Created in NX5.0.0.
License requirements : None
typedef NXOpen::Callback1<NXOpen::UIStyler::DialogState, NXOpen::UIStyler::StylerEvent *> NXOpen::UIStyler::DialogItem::FileOperation |
Called just before a dialog user selects a file operation, such as in File?New, and again after a file
operation completes.
A typical use for a file operation callback would be to make sure that the system updates cached part data in a part before a dialog user executes a File?Save. The callback can determine from the callback data structure whether the file operation is about to begin or has just completed. It can also determine which operation is being executed. This callback is only used on DA1 dialogs because the DA2 dialogs are usually cancelled (automatically through the quick access menus) when a dialog user selects any of the File menu options.
Created in NX5.0.0.
License requirements : None
typedef NXOpen::Callback1<NXOpen::UIStyler::DialogState, NXOpen::UIStyler::StylerEvent *> NXOpen::UIStyler::DialogItem::Okay |
Called when a dialog user clicks OK or MB2 anywhere in NX or presses the OK's keyboard accelerator
as defined in the resource file.
OK callbacks should terminate the dialog and always return UF_UI_CB_EXIT_DIALOG.
Created in NX5.0.0.
License requirements : None
void NXOpen::UIStyler::DialogItem::AddApplyHandler | ( | const NXOpen::UIStyler::DialogItem::Apply & | applyevent, |
bool | isDialogLaunchingEvent | ||
) |
Registers apply callback.
This method should be called before calling UIStyler::Dialog::Show or UIStyler::Dialog::RegisterWithUiMenu
Created in NX5.0.0.
License requirements : None
applyevent | applyevent |
isDialogLaunchingEvent | is dialog launching event |
void NXOpen::UIStyler::DialogItem::AddBackHandler | ( | const NXOpen::UIStyler::DialogItem::Back & | backevent, |
bool | isDialogLaunchingEvent | ||
) |
Registers back callback.
This method should be called before calling UIStyler::Dialog::Show or UIStyler::Dialog::RegisterWithUiMenu
Created in NX5.0.0.
License requirements : None
backevent | backevent |
isDialogLaunchingEvent | is dialog launching event |
void NXOpen::UIStyler::DialogItem::AddCancelHandler | ( | const NXOpen::UIStyler::DialogItem::Cancel & | cancelevent, |
bool | isDialogLaunchingEvent | ||
) |
Registers cancel callback.
This method should be called before calling UIStyler::Dialog::Show or UIStyler::Dialog::RegisterWithUiMenu
Created in NX5.0.0.
License requirements : None
cancelevent | cancelevent |
isDialogLaunchingEvent | is dialog launching event |
void NXOpen::UIStyler::DialogItem::AddConstructHandler | ( | const NXOpen::UIStyler::DialogItem::Construct & | constructevent, |
bool | isDialogLaunchingEvent | ||
) |
Registers construct callback.
This method should be called before calling UIStyler::Dialog::Show or UIStyler::Dialog::RegisterWithUiMenu
Created in NX5.0.0.
License requirements : None
constructevent | constructevent |
isDialogLaunchingEvent | is dialog launching event |
void NXOpen::UIStyler::DialogItem::AddDestructHandler | ( | const NXOpen::UIStyler::DialogItem::Destruct & | destructevent, |
bool | isDialogLaunchingEvent | ||
) |
Registers destruct callback.
This method should be called before calling UIStyler::Dialog::Show or UIStyler::Dialog::RegisterWithUiMenu
Created in NX5.0.0.
License requirements : None
destructevent | destructevent |
isDialogLaunchingEvent | is dialog launching event |
void NXOpen::UIStyler::DialogItem::AddFileOperationHandler | ( | const NXOpen::UIStyler::DialogItem::FileOperation & | fileoperationevent, |
bool | isDialogLaunchingEvent | ||
) |
Registers file operation callback.
This method should be called before calling UIStyler::Dialog::Show or UIStyler::Dialog::RegisterWithUiMenu
Created in NX5.0.0.
License requirements : None
fileoperationevent | fileoperationevent |
isDialogLaunchingEvent | is dialog launching event |
void NXOpen::UIStyler::DialogItem::AddOkayHandler | ( | const NXOpen::UIStyler::DialogItem::Okay & | okayevent, |
bool | isDialogLaunchingEvent | ||
) |
Registers ok callback.
This method should be called before calling UIStyler::Dialog::Show or UIStyler::Dialog::RegisterWithUiMenu
Created in NX5.0.0.
License requirements : None
okayevent | okayevent |
isDialogLaunchingEvent | is dialog launching event |
NXOpen::UIStyler::FileOperationData* NXOpen::UIStyler::DialogItem::FileOperationData | ( | ) |
Returns the file operation data
Created in NX5.0.0.
License requirements : None
NXOpen::SelectionHandle* NXOpen::UIStyler::DialogItem::GetSelectionHandle | ( | ) |
Gets the selection handle for a given dialog item.
void NXOpen::UIStyler::DialogItem::SetNavigationSensitivity | ( | NXOpen::UIStyler::DialogItem::DialogItemIndex | subItemIndex, |
bool | type | ||
) |
Specifies the sensitivity of the navigation buttons at the bottom of the dialog.
If you set the UF_STYLER_BACK_INDEX button to insensitive at creation time, the system does not show the BACK button; Changing the button's sensitivity while the dialog displays does not show the Back button.
Created in NX5.0.0.
License requirements : None
subItemIndex | Sub item index |
type | TRUE if sensitive, FALSE if insensitive |
void NXOpen::UIStyler::DialogItem::SetResize | ( | bool | type | ) |
Specifies wether dialog is allowed to resize
Created in NX5.0.0.
License requirements : None
type | TRUE to allow dialog to resize; FALSE to freeze the dialog size |
void NXOpen::UIStyler::DialogItem::SetSensitivity | ( | bool | type | ) |
Specifies the sensitivity of the dialog.
Created in NX5.0.0.
License requirements : None
type | TRUE if sensitive, FALSE if insensitive |
void NXOpen::UIStyler::DialogItem::SetTitle | ( | const NXString & | strLabel | ) |
Specifies a string to display on the top border of the dialog
Created in NX5.0.0.
License requirements : None
strLabel | NOTE: The full Unicode character set is not supported for this parameter. |
void NXOpen::UIStyler::DialogItem::SetTitle | ( | const char * | strLabel | ) |
Specifies a string to display on the top border of the dialog
Created in NX5.0.0.
License requirements : None
strLabel | NOTE: The full Unicode character set is not supported for this parameter. |
void NXOpen::UIStyler::DialogItem::SetWidth | ( | int | width | ) |
Specifies the pixel width for the dialog.
You can only set this attribute when the Dialog Resize attribute is set to TRUE. You cannot enter a negative number.
Created in NX5.0.0.
License requirements : None
width | width |