cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

How to Activate Dialog Help Button

SOLVED
Highlighted
Regular Member

How to Activate Dialog Help Button

There is an dialog attribute (.HelpButton) in source file which can be set to true.
But the help button is always gray out.

Does anyone know how to activate and set action for the help button in toolkit/object toolkit?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: How to Activate Dialog Help Button

Hi

 

You need to use OTK. 

 

// Header
 class helplistener : public uifcDefaultDialogListener {
public:
void OnHelp(uifcDialog_ptr dialog);
void OnClose(uifcDialog_ptr dialog);
};

 

// Code

...
uifcDialogFind(DIALOG_NAME, DIALOG_NAME)->AddActionListener(new helplistener());

uifcDialogFind(DIALOG_NAME, DIALOG_NAME)->SetHasHelpButton(true);

...

 


void helplistener::OnHelp(uifcDialog_ptr dialog)
{
  // do what ever you like
}

 

If there is no OnHelp Action is the same as if there is no OnClose Action. The Buttons are disabled.

The onHelp Action doesn't override the F1 Button Help Call.

 

Br,

Eike

View solution in original post

4 REPLIES 4
Highlighted

Re: How to Activate Dialog Help Button

Did you solved?

if so, Can you please tell me how to activate Dialog Help Button..

Highlighted

Re: How to Activate Dialog Help Button

Hi

 

You need to use OTK. 

 

// Header
 class helplistener : public uifcDefaultDialogListener {
public:
void OnHelp(uifcDialog_ptr dialog);
void OnClose(uifcDialog_ptr dialog);
};

 

// Code

...
uifcDialogFind(DIALOG_NAME, DIALOG_NAME)->AddActionListener(new helplistener());

uifcDialogFind(DIALOG_NAME, DIALOG_NAME)->SetHasHelpButton(true);

...

 


void helplistener::OnHelp(uifcDialog_ptr dialog)
{
  // do what ever you like
}

 

If there is no OnHelp Action is the same as if there is no OnClose Action. The Buttons are disabled.

The onHelp Action doesn't override the F1 Button Help Call.

 

Br,

Eike

View solution in original post

Highlighted

Re: How to Activate Dialog Help Button

@Eike_Hauptmann ,

 

Could you please tell me how to apply in C/C++ object toolkit?

 

Thanks,

 

Warm Regards,

SeonHo CHA

Tags (1)
Highlighted

Re: How to Activate Dialog Help Button

That is C++ OTK. In C (Pro/Toolkit API) it isn't possible. AFAIK there are no commands for the Help Icons (we are compiling on Creo 4.0, so not sure if they added in newer releases).

 

Br,

Eike

Announcements