wxWebKikStateChangedEvent should now return proper values for GetURL(). Also updated the sample to update the text URL when a link is clicked.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27449 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Kevin Ollivier
2004-05-26 04:11:43 +00:00
parent f96a747517
commit fba8e95e92
2 changed files with 4 additions and 3 deletions

View File

@@ -219,6 +219,7 @@ void MyFrame::OnStateChanged(wxWebKitStateChangedEvent& myEvent){
if (GetStatusBar() != NULL){
if (myEvent.GetState() == wxWEBKIT_STATE_NEGOTIATING){
GetStatusBar()->SetStatusText(_("Contacting ") + myEvent.GetURL());
urlText->SetValue(myEvent.GetURL());
}
else if (myEvent.GetState() == wxWEBKIT_STATE_TRANSFERRING){
GetStatusBar()->SetStatusText(_("Loading ") + myEvent.GetURL());