Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    HTML Viewer

    PYTHON Development
    0
    2
    338
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post