Print Page | Close Window

WebBrowser controls shutting down

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=22741
Printed Date: 05 October 2024 at 5:27am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: WebBrowser controls shutting down
Posted By: rdhd
Subject: WebBrowser controls shutting down
Date Posted: 02 October 2015 at 10:18am
I had posted yesterday that my HTML tooltip was shutting down when I am running with 17 and I resize the frame window via the shadow when I have the Office2013/White theme active.

It turns out that this isn't isolated to my tooltip. We have a number of other embedded windows (in docking panes) that use the web browser control. One that connects to a help server, one to youtube, one to facebook. If I start the app and resize the frame from "without" - using the shadow, all of the controls fail to reach the ready state after making a call to navigate.

Monitoring the call to get_ReadyState, I see that state is always "loading". The load never finishes. For my HTML tooltip, I am navigating to a file on disk and I pump messages in a while loop where I check the ready state before proceeding to display the tooltip window. For all the other docking pane based UI I mentioned, we just use CHtmLView and call the Navigate message (that is, there is no need to pump app messages while waiting as these are fully asynchronous UI elements). In my latest test, I just start the app and never do anything to invoke the tooltip code. I just resize the frame and all my web browser control based UIs shut down.

In order to "fix" all these issues, I have to disable the Shadow and suffer with the incredibly hard to resize very thin bordered app window.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net