/ Forums / Advansys Formativ / Creating Solutions with Formativ / TEmbeddedWB properties not implemented

  • Creator
    Topic
  • #4450
    ctaleck
    Participant

      Can someone confirm my findings for the following properties using the TEmbeddedWB?

      myForm.ViewEmbeddedWB1.ReadyState ' Not implemented
      myForm.ViewEmbeddedWB1.Busy ' Implemented
    • Author
      Replies
    • #8206
      Support 3
      Participant

        Unfortunately ReadyState property not implemented in TEmbeddedWB.

        However, you can use the following workaround to access the IHTMLDocument2 (http://msdn.microsoft.com/en-us/library/aa752574%28VS.85%29.aspx) from the window handle then use the ReadyState. You can also use other properties of the IHTMLDocument2 interface.

          
          dim oHTMLDocument
        
          if (Utilities.IHTMLDocumentFromViewHandle(myForm.Handle, oHTMLDocument) = 0) then
            msgbox oHTMLDocument.ReadyState
          end if
        
          msgbox myForm.ViewEmbeddedWB1.Busy
        
          set oHTMLDocument = nothing
        

        Regards,
        Advansys Support

      Viewing 1 replies (of 1 total)
      • You must be logged in to reply to this topic.