DTD HTML 4.01 in wxWidgets Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
kps
Knows some wx things
Knows some wx things
Posts: 31
Joined: Tue Jan 03, 2012 4:55 am

DTD HTML 4.01 in wxWidgets

Post by kps »

Hi,

Does wxWidgets 2.8.7 support CSS and HTML. I am creating a HTML window and Loading a page which has CSS.

Sample code here.

Code: Select all


CSS File (temp.css)

/* All views: color of horizontal ruler */
td.ruler
{
  background-color: #6688D4;
}

HTML File:

<link rel="stylesheet" type="text/css" href="temp.css>

<body>
<table>
<tr><td class="ruler"><img src="glass.png" width=3 height=3 alt=""></td></tr>
<\able>
</body>
wxWidgets is ignoring CSS file formating and taking it as a normal HTML code. Please Let me know a way out.

Kps
User avatar
doublemax
Moderator
Moderator
Posts: 19114
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: DTD HTML 4.01 in wxWidgets

Post by doublemax »

wxHtmlWindow only understands HTML1.0 + a few extra things.

You'll have to upgrade to 2.9.x and use wxWebView:
http://docs.wxwidgets.org/trunk/classwx_web_view.html
Use the source, Luke!
kps
Knows some wx things
Knows some wx things
Posts: 31
Joined: Tue Jan 03, 2012 4:55 am

Re: DTD HTML 4.01 in wxWidgets

Post by kps »

Thanks a lot,

Does wxWebview support LoadPage like Html Window. I checked the sample it more of like a Web designing.

kps
User avatar
doublemax
Moderator
Moderator
Posts: 19114
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: DTD HTML 4.01 in wxWidgets

Post by doublemax »

The method is called LoadURL() in wxWebView.
Use the source, Luke!
Post Reply