HTML Viewer



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 22/06/2011 at 10:07, xxxxxxxx wrote:

    Hi,

    i can't get the HTML Viewer working. It does alway Display a blank white field.

    import  c4d  
    from    c4d.gui import GeDialog, RenameDialog  
      
    class foo(GeDialog) :  
      def CreateLayout(self) :  
          self.html    = self.AddCustomGui(1000, c4d.CUSTOMGUI_HTMLVIEWER, "html", c4d.BFH_SCALEFIT | c4d.BFV_SCALEFIT, 300, 140 )  
          self.html.SetText("""  
    <html>  
    <body>  
    Hallo !  
    </body>  
    </html>""")  
          self.AddButton(1001, c4d.BFH_LEFT, name = "Open Url.")  
          return True  
      
      def Command(self, id, msg) :  
          if id == 1001:  
              self.html.SetUrl(str(RenameDialog("http://google.de")), c4d.URL_ENCODING_UTF16)  
              self.html.DoAction(c4d.WEBPAGE_REFRESH)  
      
          return True  
      
    foo().Open(c4d.DLG_TYPE_MODAL_RESIZEABLE)
    

    Does anyone know how to do it ?
    Thanks !
    Niklas

    //edit:
    Oh man ..

    Originally posted by xxxxxxxx

    HTML viewer GUI elements can not be used in modal dialogs.



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 22/06/2011 at 11:51, xxxxxxxx wrote:

    the HTMLViewer does not work in a modal dialog.


Log in to reply