How to bind a predefined delegate

Hello, I am wanting to take advantage of the delegate “FOnShowDialog OnShowDialog” Defined in SWebBrowser.h, however, I am confused as to how I actually bind a delegate that I did not define myself. Do I need to define the delegate myself even though it’s already defined in the header of another class? Any help here would be greatly appreciated.

Current Header for binding:

	/** Broadcasts whenever an alert appears */
	DECLARE_EVENT( SWebBrowser, FOnShowDialog )
	SWebBrowser::FOnShowDialog& OnBrowserDialog() { UE_LOG(LogTemp, Log, TEXT("LOADED EVENT")); return OnShowDialog; }
	/** Broadcasts whenever the layer changes */
	SWebBrowser::FOnShowDialog OnShowDialog;

	/**Calls the event */
	void invokeEvent();

Current C++ body for binding

void UMYWebBrowser::invokeEvent()
	UMYWebBrowser* SMaker = this;
	SWebBrowser::FOnShowDialog& SEvent = SMaker->OnBrowserDialog();
	UE_LOG(LogTemp, Warning, TEXT("LoadingInvoker"));

Hello! I believe that in that case you need to create

	SLATE_EVENT(FOnShowDialog, OnShowDialog)

between SLATE_BEGIN_ARGS and SLATE_END_ARGS in your class and in your Construct method just call base method like that

SWebBrowser::Construct(SWebBrowser::FArguments().OnShowDialog(InArgs._OnShowDialog), BrowserWindow);

So you just push your class argument through to its parent class…

Thanks so much for your response! I’ll try it out when I get home and let you know if it worked!