HTML UI dialog, similar to MFC? Topic is solved

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
zura
Earned some good credits
Earned some good credits
Posts: 104
Joined: Thu Apr 02, 2009 8:11 pm
Location: Tbilisi, Georgia

HTML UI dialog, similar to MFC?

Post by zura »

Hello,

Is there a wx alternative of CDHtmlDialog MFC? https://learn.microsoft.com/en-us/cpp/m ... w=msvc-170

To use HTML as UI. wxHtmlWindow and wxWebView don't provide access to particular UI elements and events (HTML buttons, checkboxes, etc...).
Last edited by zura on Tue Feb 07, 2023 8:08 pm, edited 2 times in total.
User avatar
doublemax
Moderator
Moderator
Posts: 19116
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: HTML UI dialog, similar to MFC?

Post by doublemax »

No.
Use the source, Luke!
zura
Earned some good credits
Earned some good credits
Posts: 104
Joined: Thu Apr 02, 2009 8:11 pm
Location: Tbilisi, Georgia

Re: HTML UI dialog, similar to MFC?

Post by zura »

Interestingly, wxPython's HtmlWindow can mix HTML with Python code (wxdemo > HtmlWindow > With Widgets).
User avatar
doublemax
Moderator
Moderator
Posts: 19116
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: HTML UI dialog, similar to MFC?

Post by doublemax »

zura wrote: Tue Feb 07, 2023 7:15 pm Interestingly, wxPython's HtmlWindow can mix HTML with Python code (wxdemo > HtmlWindow > With Widgets).
Yes, but wxHtmlWindow is so limited in its HTML support, it's easier to build the GUI "the usual way".
https://docs.wxwidgets.org/trunk/overvi ... ptags_list

<wxdir>/samples/html/widgets/widget.cpp shows how to do it.
Use the source, Luke!
zura
Earned some good credits
Earned some good credits
Posts: 104
Joined: Thu Apr 02, 2009 8:11 pm
Location: Tbilisi, Georgia

Re: HTML UI dialog, similar to MFC?

Post by zura »

Oh, I see. It actually inserts a wx control in the document... And no advanced styling whatsoever.

Thanks for the clarification!
Post Reply