WebThread in WebDialog?

I can place a WebThread on a WebPage and it runs OK, but when I place a WebThread on a WebDialog window Xojo gives a compile error ‘Parameters are not compatible with this function’. Is there a workaround?