Skip to content

wxHtmlWindow::LoadFile() parameters, LoadPage($url)  #158

Description

@davekimble2
<?php  // web page viewer
$frame = new wxFrame(null, wxID_TOP, "test", new wxPoint(-1, 0), new wxSize(1044, 1080) );
$vbox = new wxBoxSizer(wxVERTICAL);
$html_box = new wxHtmlWindow($frame, wxID_ANY, wxDefaultPosition, new wxSize(1024, 600));
$html_box->LoadFile("/home/.../test.htm");
$vbox->Add($html_box, 1, wxALL, 10);
$frame->SetSizer($vbox);
$frame->Show();
wxEntry();
?>

Fatal error: Wrong type or count of parameters passed to: wxHtmlWindow::LoadFile
in /home/.../test.wxphp on line 10

Also

 $html_box->LoadPage("http://mydomain.com");

Dialog box: Cannot load page http://mydomain.com

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions