Skip to main content
7-Bedrock
July 22, 2019
Solved

How to Activate Dialog Help Button

  • July 22, 2019
  • 1 reply
  • 2318 views

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?

Best answer by Eike_Hauptmann

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

1 reply

18-Opal
September 25, 2019

Did you solved?

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

15-Moonstone
December 4, 2019

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

18-Opal
December 5, 2019

@Eike_Hauptmann ,

 

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

 

Thanks,

 

Warm Regards,

SeonHo CHA