2020-02-04
05:25 PM
- last edited on
2022-09-29
09:35 AM
by
Daniel Kassai
Solved! Go to Solution.
2020-02-07 06:05 PM
void handleURLChanged(const DG::BrowserBase& source, const DG::BrowserURLChangedArg& eventArg); m_browser.urlChanged += DGEventNotifier<DG::BrowserBase, DG::BrowserURLChangedArg>::Runnable(&handleURLChanged);
2020-02-05 02:55 PM
2020-02-07 03:52 PM
DGEventNotifier<BrowserBase, DG::BrowserURLChangedArg>::Runnable func = &UIBrowser::URLChanged;Can you please tell me what is wrong?
class UIBrowser: public DG::Browser { public: UIBrowser(const DG::Panel& panel, short item); private: virtual void URLChanged(const DG::BrowserURLChangedArg& eventArg) override; }; UIBrowser::UIBrowser(const DG::Panel& panel, short item) : DG::Browser(panel, item) { DGEventNotifier<BrowserBase, DG::BrowserURLChangedArg>::Runnable func = &UIBrowser::URLChanged; this->urlChanged += func; } void UIBrowser::URLChanged(const DG::BrowserURLChangedArg& eventArg) { ... }
2020-02-07 04:22 PM
Martin wrote:Try changing this to:
I'm not able to make it. My code does not compile in this line:DGEventNotifier<BrowserBase, DG::BrowserURLChangedArg>::Runnable func = &UIBrowser::URLChanged;
this->urlChanged += DGEventNotifier<DG::BrowserBase, DG::BrowserURLChangedArg>::Runnable(UIBrowser::URLChanged);
2020-02-07 04:32 PM
this->urlChanged += DGEventNotifier<DG::BrowserBase, DG::BrowserURLChangedArg>::Runnable(&UIBrowser::URLChanged);
2020-02-07 04:48 PM
void UIBrowser::URLChanged(const DG::BrowserBase& source, const DG::BrowserURLChangedArg& eventArg)
2020-02-07 06:05 PM
void handleURLChanged(const DG::BrowserBase& source, const DG::BrowserURLChangedArg& eventArg); m_browser.urlChanged += DGEventNotifier<DG::BrowserBase, DG::BrowserURLChangedArg>::Runnable(&handleURLChanged);