wxWebView 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.
RobertHK
I live to help wx-kind
I live to help wx-kind
Posts: 158
Joined: Sat Dec 01, 2012 6:43 am

wxWebView

Post by RobertHK »

Good day. I need please consult the following question: how to achieve external border (only the outer frame) of the table like a example blue color? I have the following code that does not work. If border=""0"" is displayed in the window webview as gray shade on window print preview thick black frame. Else if border=""2"" is displayed in the window wxWebView as a double blank border (thin black). Note: For a better job with the frame (borders) I placed the inner table (3 columns, 4 rows) in the outer table (1 row, 1 column). Note: for a better job with the table frame (for separate job with the edge) I placed the inner table (3 columns, 4 rows) in the outer table (row 1, column 1). Here is the complete code of this dual (but only one) of the table:

m_pageHTML.append(
"&nbsp<u><i><b><font color=""#000099""><font size=""4"">"wxT("Recapitulation:")"</b></i></u></font><br>"
"<table style=""border-style: solid; border-color: blue;"" frame=""box"" rules=""none"" bgcolor=""#ffffff"" border=""0"""
"cellspacing=""2"" width: 45%>"
"<tbody>"
"<tr>"
"<td valign=""top"">"
"<table align=""right"" border=""0"" cellpadding=""2"""
"cellspacing=""2"" width: 45%>"
"<tbody>"
"<tr>"
"<td valign=""top"" width=""300""><font color=""#000099""><b><font size=""3"">"wxT("Labor cost excluding VAT")"</b><br></font> </td>"
"<td align=""right"" valign=""top"" width=""60""><font color=""#000099""><b><font size=""3"">"+m_grid82->GetCellValue(1,0)+"</b></font></td>"
"<td valign=""top"" width=""40""><font color=""#000099""><b><font size=""3"">"+m_textCtrl123->GetValue()+"<br></b></font></td>"
"</tr>"
"<tr>"
"<td valign=""top"" width=""300""><font color=""#000099""><b><font size=""3"">"wxT("VAT rate:")"<br></b></font></td>"
"<td align=""right"" valign=""top"" width=""60""><font color=""#000099""><b><font size=""3"">"+m_textCtrl307->GetValue()+"<br></b></font></td>"
"<td valign=""top"" width=""40""><font color=""#000099""><b><font size=""3"">%<br></b></font></td>"
"</tr>"
"<tr>"
"<td valign=""top"" width=""300""><font color=""#000099""><b><font size=""3"">"wxT("The value of VAT:")"</b><br></font> </td>" // name value
"<td align=""right"" valign=""top"" width=""60""><font color=""#000099""><b><font size=""3"">"+m_grid82->GetCellValue(1,1)+"</b></font></td>" // value
"<td valign=""top"" width=""40""><font color=""#000099""><b><font size=""3"">"+m_textCtrl123->GetValue()+"<br></b></font></td>" // CZK; €; Ł; $;
"</tr>"
"<tr>"
"<td valign=""top"" width=""300""><font color=""#000099""><b><font size=""3"">"wxT("Labor cost incl. VAT:")"</b><br></font> </td>"
"<td align=""right"" valign=""top"" width=""60""><font color=""#000099""><b><font size=""3"">"+m_grid82->GetCellValue(1,2)+"</b></font></td>"
"<td valign=""top"" width=""40""><font color=""#000099""><b><font size=""3"">"+m_textCtrl123->GetValue()+"<br></b></font></td>"
"</tr>"
"</tbody>"
"</table>"
"</td>"
"</tr>"
"</tbody>"
"</table>"
Thank you very much for any idea.
User avatar
doublemax
Moderator
Moderator
Posts: 19116
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxWebView

Post by doublemax »

I didn't understand the problem completely, but the wxHtmlEasyPrinting framework uses wxHtmlWindow, so it supports only a limited set of HTML tags and very few CSS commands. If you use wxWebView to display some html code on screen, but then use wxHtmlEasyPrinting for the printout, different displays are to be expected.

if you're using wxWebView anyway, have you tried using it for the printing, too?
-> wxWebView::Print()
Use the source, Luke!
RobertHK
I live to help wx-kind
I live to help wx-kind
Posts: 158
Joined: Sat Dec 01, 2012 6:43 am

Re: wxWebView

Post by RobertHK »

Hello doublemax. No, I do not use wxHTMLWindow. Code appears here:
// PAGE 9.
m_Page9 = new wxPanel( m_Notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
wxBoxSizer* vTopSizer9;
vTopSizer9 = new wxBoxSizer( wxVERTICAL );

m_browser = wxWebView::New(m_Page9, wxID_ANY, wxEmptyString);
vTopSizer9->Add(m_browser, wxSizerFlags().Expand().Proportion(1));

m_browser->RegisterHandler(wxSharedPtr<wxWebViewHandler>(new wxWebViewArchiveHandler("wxfs")));
m_browser->RegisterHandler(wxSharedPtr<wxWebViewHandler>(new wxWebViewFSHandler("memory")));

m_Page9->SetSizer( vTopSizer9 );
m_Page9->Layout();
vTopSizer9->Fit( m_Page9 );
m_Notebook->AddPage( m_Page9, wxT("Preview/ Print "), false, wxNullBitmap );

and use method:

//---------
void BaseFrame::OnVariant1(wxCommandEvent& WXUNUSED(event))
{
....
wxString page1 = m_pageHTML;
const wxCharBuffer buf(m_pageHTML.ToUTF8());
wxMemoryFSHandler::AddFile("page1.htm", buf.data(), buf.length());
m_browser->LoadURL("memory:page1.htm");
}

//----------
void BaseFrame::OnPrint(wxCommandEvent& WXUNUSED(event))
{
m_browser->Print();

}
//----------
void BaseFrame::OnDeletePageHTML(wxCommandEvent& WXUNUSED(event))
{
m_browser->SelectAll();
m_browser->DeleteSelection();
m_pageHTML.Clear();
wxMemoryFSHandler::RemoveFile("page1.htm");
}

This to me nicely: displays / prints / deletes my wxString "m_pageHTML" but with those limitations I have described.
User avatar
doublemax
Moderator
Moderator
Posts: 19116
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxWebView

Post by doublemax »

That sounds more like a HTML question than a wxWidgets question then. I'm sure there are plenty resources out there to find an answer.
Use the source, Luke!
RobertHK
I live to help wx-kind
I live to help wx-kind
Posts: 158
Joined: Sat Dec 01, 2012 6:43 am

Re: wxWebView

Post by RobertHK »

I thought so too, otherwise I would not bother with this question here. But: the original html code I created SealMonkey 2.22 (where they appear excellent) and verified in KompoZer 0.8.b.3 (which is also displayed without erroneously). The page (the original code) without problems also appear in Google Chrome (my web browser). So I think I'm missing some settings (wrong format of some items) for m_browser. #-o
RobertHK
I live to help wx-kind
I live to help wx-kind
Posts: 158
Joined: Sat Dec 01, 2012 6:43 am

Re: wxWebView

Post by RobertHK »

I did some research and found the following: wxWebView (m_browser) tries to show the color of the table in m_page9 - called void BaseFrame::OnVariant1(). But I had to rewrite the "border-color" to "BorderColor". For example (I want blue border):

m_pageHTML.append(...
"<table style=""BorderStyle=""Solid""; BorderColor=""Olive""; width: 45%;"""
"frame=""box"" rules=""none"" bgcolor=""White"" cellpadding=""0"" cellspacing=""0"" border=""1"">"
"<tbody>"
....);

Then in limited takes and displays HTML color. On my system shows the following colors (left - system colors by standard HTML, right in wxWebView shown):
Black = Olive
White = Blue
Green = Green
Maroon = Maroon
Olive = Blue
Navy = Black
Purple = Black
Gray = Green
Yellow = Red
Lime = Black
Aqua = Maroon
Fuchsia = Fuchsia
Silver = Lime
Red = Lime
Blue = Maroon
Teal = Green
But for print preview and printing itself does not change anything - the border of the table is black in all cases.
User avatar
doublemax
Moderator
Moderator
Posts: 19116
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxWebView

Post by doublemax »

Can you show some complete html code or attach a html file (and - as usual - as simple as possible) ?
Use the source, Luke!
RobertHK
I live to help wx-kind
I live to help wx-kind
Posts: 158
Joined: Sat Dec 01, 2012 6:43 am

Re: wxWebView

Post by RobertHK »

Good day. I will try. I did simplify my code for testing purposes.

Code: Select all

<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>test_1</title>
</head>
<body>
<table cellpadding="2" cellspacing="2" align="center" border="0"
width="100%">
<tbody>
<tr>
<td style="text-align: center;" valign="top"><small><i><big><big><big><span
style="color: rgb(51, 153, 153); font-weight:
bold;">Budget</span></big></big></big></i></small><br>
</td>
</tr>
</tbody>
</table>
<br>
<table style="border-style: solid; border-color: rgb(0, 0, 153);
width: 100%;" frame="box" rules="none" cellpadding="2"
cellspacing="2" border="2">
<tbody>
<tr>
<td style="vertical-align: top; width: 160px; color: rgb(0, 0,
153); font-weight: bold;">Investor:<br>
</td>
<td valign="top">m_inv<br>
</td>
<td style="color: rgb(0, 0, 153); font-weight: bold;"
valign="top" width="160">User:<br>
</td>
<td valign="top">m_user<br>
</td>
</tr>
<tr>
<td style="color: rgb(0, 0, 153); font-weight: bold;"
valign="top" width="160">Building:<br>
</td>
<td valign="top">m_buildPlace<br>
</td>
<td style="color: rgb(0, 0, 153); font-weight: bold;"
valign="top" width="160">Action name:<br>
</td>
<td valign="top">m_acce<br>
</td>
</tr>
<tr>
<td style="color: rgb(0, 0, 153); font-weight: bold;"
valign="top" width="160">Order number:<br>
</td>
<td valign="top">m_obj<br>
</td>
<td style="color: rgb(0, 0, 153); font-weight: bold;"
valign="top" width="160">Custom number:<br>
</td>
<td valign="top">m_cust<br>
</td>
</tr>
<tr>
<td style="color: rgb(0, 0, 153); font-weight: bold;"
valign="top" width="160">Produced:<br>
</td>
<td valign="top">m_author<br>
</td>
<td style="color: rgb(0, 0, 153); font-weight: bold;"
valign="top" width="160">Date:<br>
</td>
<td valign="top">m_date<br>
</td>
</tr>
</tbody>
</table>
<br>
<span style="color: rgb(0, 153, 0); font-weight: bold;
text-decoration: underline; font-style: italic;"> <big>Material:</big></span><br>
<br>
<table cellpadding="1" cellspacing="1" border="0" width="100%">
<tbody>
<tr>
<td style="font-weight: bold; color: rgb(0, 153, 0);"
valign="top" width="35">Nr.<br>
</td>
<td style="font-weight: bold; color: rgb(0, 153, 0);"
valign="top" width="80">Supplier/Manuf.<br>
</td>
<td style="font-weight: bold; color: rgb(0, 153, 0);"
valign="top">Item - description<br>
</td>
<td style="font-weight: bold; color: rgb(0, 153, 0);"
valign="top">Type - species<br>
</td>
<td style="font-weight: bold; color: rgb(0, 153, 0);"
align="right" valign="top" width="80">Number/<br>
</td>
<td style="font-weight: bold; color: rgb(0, 153, 0);"
valign="top" width="50">unit<br>
</td>
<td style="font-weight: bold; color: rgb(0, 153, 0);"
valign="top" width="100">Unit price<br>
</td>
<td style="font-weight: bold; color: rgb(0, 153, 0);"
valign="top" width="120">Total with. VAT<br>
</td>
</tr>
<tr>
<td valign="top" width="35">m_nr<br>
</td>
<td valign="top" width="80">m_dodavatel<br>
</td>
<td valign="top">m_polozka<br>
</td>
<td valign="top">m_typ<br>
</td>
<td align="right" valign="top" width="80">m_ks<br>
</td>
<td valign="top" width="50">m_MJ<br>
</td>
<td align="right" valign="top" width="100">m_jcena<br>
</td>
<td align="right" valign="top" width="120">m_CelkBezDPH</td>
</tr>
</tbody>
</table>
<br>
<span style="color: rgb(0, 153, 0); font-weight: bold; font-style:
italic; text-decoration: underline;"> <big>Recapitulation:</big></span><br>
<br>
<table style="border-style: solid; border-color: rgb(0, 153, 0);
width: 45%;" frame="box" rules="none" cellpadding="2"
cellspacing="2" border="2">
<tbody>
<tr>
<td style="color: rgb(0, 153, 0); font-weight: bold;"
valign="top" width="200">Material costs without VAT:<br>
</td>
<td style="color: rgb(0, 153, 0); font-weight: bold;"
align="right" valign="top" width="60">mt_SumBezDPH<br>
</td>
<td style="color: rgb(0, 153, 0); font-weight: bold;"
valign="top" width="40">m_mena<br>
</td>
</tr>
<tr>
<td style="color: rgb(0, 153, 0); font-weight: bold;"
valign="top">VAT rate:<br>
</td>
<td style="color: rgb(0, 153, 0); font-weight: bold;"
align="right" valign="top" width="60">mt_SazDPH<br>
</td>
<td style="color: rgb(0, 153, 0); font-weight: bold;"
valign="top" width="40">%<br>
</td>
</tr>
<tr>
<td style="color: rgb(0, 153, 0); font-weight: bold;"
valign="top" width="200">The value of VAT:<br>
</td>
<td style="color: rgb(0, 153, 0); font-weight: bold;"
align="right" valign="top" width="60">mt_hodnotaDPH<br>
</td>
<td style="color: rgb(0, 153, 0); font-weight: bold;"
valign="top" width="40">m_mena<br>
</td>
</tr>
<tr>
<td style="color: rgb(0, 153, 0); font-weight: bold;"
valign="top" width="200">Material costs including VAT:<br>
</td>
<td style="color: rgb(0, 153, 0); font-weight: bold;"
align="right" valign="top" width="60">mt_SumSdph<br>
</td>
<td style="color: rgb(0, 153, 0); font-weight: bold;"
valign="top" width="40">m_mena<br>
</td>
</tr>
</tbody>
</table>
<br>
</body>
</html>
This code has been SeaMonkey. Here is the code wxWidgets:

Code: Select all

void BaseFrame::OnVariant2(wxCommandEvent& WXUNUSED(event))
{
	wxString pageX = wxEmptyString;
    pageX.append(
    "<html>"
    "<head>"
      "<meta http-equiv=""content-type"" content=""text/html; charset=UTF-8"">"
      "<title>test_1</title>"
    "</head>"
    "<body>"
    "<table cellpadding=""2"" cellspacing=""2"" align=""center"" border=""0"" width=""100%"">"
      "<tbody>"
        "<tr>"
          "<td style=""text-align: center;"" valign=""top""><small><i><big><big><big><span style=""color: rgb(51, 153, 153);"
          "font-weight: bold;"">Budget</span></big></big></big></i></small><br></td>"
        "</tr>"
      "</tbody>"
    "</table>"
    "<br>"
    "<table style=""border-style: solid; border-color: rgb(0, 0, 153); width: 100%;"""
    "frame=""box"" rules=""none"" cellpadding=""2"" cellspacing=""2"" border=""2"">"
      "<tbody>"
      "<tr>"
        "<td style=""vertical-align: top; width: 160px; color: rgb(0, 0, 153); font-weight: bold;"">"wxT("Investor:")"<br></td>"
        "<td valign=""top"">m_inv<br></td>"
        "<td style=""color: rgb(0, 0, 153); font-weight: bold;"" valign=""top"" width=""160"">"wxT("User:")"<br></td>"
        "<td valign=""top"">m_user<br></td>"
      "</tr>"
      "<tr>"
        "<td style=""color: rgb(0, 0, 153); font-weight: bold;"" valign=""top"" width=""160"">"wxT("Building:")"<br></td>"
        "<td valign=""top"">m_buildPlace<br></td>"
        "<td style=""color: rgb(0, 0, 153); font-weight: bold;"" valign=""top"" width=""160"">"wxT("Action name:")"<br></td>"
        "<td valign=""top"">m_acce<br></td>"
      "</tr>"
      "<tr>"
        "<td style=""color: rgb(0, 0, 153); font-weight: bold;"" valign=""top"" width=""160"">"wxT("Order number:")"<br></td>"
        "<td valign=""top"">m_obj<br></td>"
        "<td style=""color: rgb(0, 0, 153); font-weight: bold;"" valign=""top"" width=""160"">"wxT("Custom number:")"<br></td>"
        "<td valign=""top"">m_cust<br></td>"
      "</tr>"
      "<tr>"
        "<td style=""color: rgb(0, 0, 153); font-weight: bold;"" valign=""top"" width=""160"">"wxT("Produced:")"<br></td>"
        "<td valign=""top"">m_author<br></td>"
        "<td style=""color: rgb(0, 0, 153); font-weight: bold;"" valign=""top"" width=""160"">"wxT("Date:")"<br></td>"
        "<td valign=""top"">m_date<br></td>"
      "</tr>"
    "</tbody>"
    "</table>"
    "<br>"
    "<span style=""color: rgb(0, 153, 0); font-weight: bold;"
    "text-decoration: underline; font-style: italic;""><big>"wxT("Material:")"</big></span><br>"
    "<br>"
    "<table cellpadding=""1"" cellspacing=""1"" border=""0"" width=""100%"">"
      "<tbody>"
        "<tr>"
          "<td style=""font-weight: bold; color: rgb(0, 153, 0);"" valign=""top"" width=""35"">Nr.<br></td>"
          "<td style=""font-weight: bold; color: rgb(0, 153, 0);"" valign=""top"" width=""80"">Supplier/Manuf.<br></td>"
          "<td style=""font-weight: bold; color: rgb(0, 153, 0);"" valign=""top"">Item - description<br></td>"
          "<td style=""font-weight: bold; color: rgb(0, 153, 0);"" valign=""top"">Type - species<br></td>"
          "<td style=""font-weight: bold; color: rgb(0, 153, 0);"" align=""right"" valign=""top"" width=""80"">Number/<br></td>"
          "<td style=""font-weight: bold; color: rgb(0, 153, 0);"" valign=""top"" width=""50"">unit<br></td>"
          "<td style=""font-weight: bold; color: rgb(0, 153, 0);"" valign=""top"" width=""100"">Unit price<br></td>"
          "<td style=""font-weight: bold; color: rgb(0, 153, 0);"" valign=""top"" width=""120"">Total with. VAT<br></td>"
        "</tr>"
        "<tr>"
          "<td valign=""top"" width=""35"">m_nr<br></td>"
          "<td valign=""top"" width=""80"">m_dodavatel<br></td>"
          "<td valign=""top"">m_polozka<br></td>"
          "<td valign=""top"">m_typ<br></td>"
          "<td align=""right"" valign=""top"" width=""80"">m_ks<br></td>"
          "<td valign=""top"" width=""50"">m_MJ<br></td>"
          "<td align=""right"" valign=""top"" width=""100"">m_jcena<br></td>"
          "<td align=""right"" valign=""top"" width=""120"">m_CelkBezDPH</td>"
        "</tr>"
      "</tbody>"
    "</table>"
    "<br>"
    "<span style=""color: rgb(0, 153, 0); font-weight: bold; font-style: italic; text-decoration: underline;"">"
    "<big>"wxT("Recapitulation:")"</big></span><br>"
    "<br>"
    "<table style=""border-style: solid; border-color: rgb(0, 153, 0); width: 45%;"" frame=""box"" rules=""none"""
    "cellpadding=""2"" cellspacing=""2"" border=""2"">"
      "<tbody>"
        "<tr>"
          "<td style=""color: rgb(0, 153, 0); font-weight: bold;"" valign=""top"" width=""200"">Material costs without VAT:<br></td>"
          "<td style=""color: rgb(0, 153, 0); font-weight: bold;"" align=""right"" valign=""top"" width=""60"">mt_SumBezDPH<br></td>"
          "<td style=""color: rgb(0, 153, 0); font-weight: bold;"" valign=""top"" width=""40"">m_mena<br></td>"
        "</tr>"
        "<tr>"
          "<td style=""color: rgb(0, 153, 0); font-weight: bold;"" valign=""top"">VAT rate:<br></td>"
          "<td style=""color: rgb(0, 153, 0); font-weight: bold;"" align=""right"" valign=""top"" width=""60"">mt_SazDPH<br></td>"
          "<td style=""color: rgb(0, 153, 0); font-weight: bold;"" valign=""top"" width=""40"">%<br></td>"
        "</tr>"
        "<tr>"
          "<td style=""color: rgb(0, 153, 0); font-weight: bold;"" valign=""top"" width=""200"">The value of VAT:<br></td>"
          "<td style=""color: rgb(0, 153, 0); font-weight: bold;"" align=""right"" valign=""top"" width=""60"">mt_hodnotaDPH<br></td>"
          "<td style=""color: rgb(0, 153, 0); font-weight: bold;"" valign=""top"" width=""40"">m_mena<br></td>"
        "</tr>"
        "<tr>"
          "<td style=""color: rgb(0, 153, 0); font-weight: bold;"" valign=""top"" width=""200"">Material costs including VAT:<br></td>"
          "<td style=""color: rgb(0, 153, 0); font-weight: bold;"" align=""right"" valign=""top"" width=""60"">mt_SumSdph<br></td>"
          "<td style=""color: rgb(0, 153, 0); font-weight: bold;"" valign=""top"" width=""40"">m_mena<br></td>"
        "</tr>"
      "</tbody>"
    "</table>"
    "<br>"
"</body>"
"</html>"
);
	const wxCharBuffer buf(pageX.ToUTF8());
	wxMemoryFSHandler::AddFile("pageX.htm", buf.data(), buf.length());
	m_browser->LoadURL("memory:pageX.htm");
}
Because a lot of parameters have to rewrite, so personally I think that this way of using the CSS code is reduced to a simple HTML (with its limitations). SeaMonkey Kompozer and generate a header: <! DOCTYPE html PUBLIC "" - / / W3C / / DTD HTML 4.01 Transitional / / EN "">, which specifies the W3C standard for CSS. For example, 'color: rgb (0, 0, 153);' or 'font-weight: bold;' in:
/*..."<td style=""vertical-align: top; width: 160px; color: rgb(0, 0, 153); font-weight: bold;"">"wxT("Investor:")"<br></td>"...*/
has no effect: the font is black and normal thickness. I have to be rewritten to:
/*... "<td valign=""top"" width=""160""><font color=""#3333ff""><b><font size=""2"">"wxT("Investor:")"</b><br></font></td>"...*/
and then displays the way I want. I think it would be good to specify some variables that will work with W3C standards and thus it also displayed and printed in wxWebView.
RobertHK
I live to help wx-kind
I live to help wx-kind
Posts: 158
Joined: Sat Dec 01, 2012 6:43 am

Re: wxWebView

Post by RobertHK »

I am convinced that m_browser can work with CSS, but I do not know how to tell him that I do not want toupee HTML ... Something as defined - would use the W3C standard for display / printing. :D
User avatar
doublemax
Moderator
Moderator
Posts: 19116
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxWebView

Post by doublemax »

It should be possible to see the actual problem with a few lines of html code. The actual content should be irrelevant.
Use the source, Luke!
RobertHK
I live to help wx-kind
I live to help wx-kind
Posts: 158
Joined: Sat Dec 01, 2012 6:43 am

Re: wxWebView

Post by RobertHK »

Hello, doublemax. Very much appreciate your help, but now I'm a little confused. I do not understand what the error code I mentioned. Simply, as the parameters in the format:
- color: rgb (0, 153, 0); - do not display color - I have to write <font color=""#3333ff"">...</font>
- font-weight: bold; - do not appear bold - I have to write <b>...</ b>
- font-style: italic; - italic does not write - must write <i>...</ i>
- text-decoration: underline; - text is not underlined - I must write <u>...</ u>
- border-color: blue; - frame around the table is not blue - I must write BorderColor "Blue" (and it is not true, as I wrote: Blue = White).
- border-style: solid; - I did not find yet.
- Font size: <big> </ big> look monstrously (large jumps in size). use: <font size=""X"">.
I do not know. But thank you for your willingness to help me.
User avatar
doublemax
Moderator
Moderator
Posts: 19116
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxWebView

Post by doublemax »

Now i'm totally confused. What you're writing now doesn't seem to be the same as in your first post. So i have (still) no idea what the actual problem is.

Provide some html code.

What do you expect?
What do you get instead?

Maybe show some screenshots.
Use the source, Luke!
RobertHK
I live to help wx-kind
I live to help wx-kind
Posts: 158
Joined: Sat Dec 01, 2012 6:43 am

Re: wxWebView

Post by RobertHK »

testHTML is what I wanted. testWX is what I have.
Attachments
testHTML.jpg
RobertHK
I live to help wx-kind
I live to help wx-kind
Posts: 158
Joined: Sat Dec 01, 2012 6:43 am

Re: wxWebView

Post by RobertHK »

testWX is what I have.
Attachments
testWX.jpg
testWX.jpg (48.03 KiB) Viewed 3955 times
User avatar
doublemax
Moderator
Moderator
Posts: 19116
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxWebView

Post by doublemax »

So i assume "testhtml" is a "hand made" html file you load in Firefox.

And "testwx" is the html code you generated in code and then displayed in wxWebView?

First things to check:
a) Load the static htmlfile in wxWebView and check if it displays correctly.
b) Save the generated html code to a file and load in FireFox.
Use the source, Luke!
Post Reply