Simple Browser



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

    On 14/11/2012 at 17:47, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:   R14 
    Platform:   Windows  ;   
    Language(s) :     C++  ;

    ---------
    Hi Folks,
     
    just a bit lost as to how to go about making a simple browser area in a dialog I have. I've tried with the HTML viewer, and while I can get web pages to load, I can't get for instance "My Computer" to show up. The html browser was done using CUSTOMGUI_HTMLVIEWER through an AddCustomGui dialog element. Though I'm not after a web browser - I only tried it this way to experiment.
     
    But does anyone have a simple example of this using files and folders etc? Or perhaps point me in the right direction?
    Regards,
     
    WP.



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

    On 15/11/2012 at 05:06, xxxxxxxx wrote:

    Hi WP,

    the file:// protocol in browsers are handled differently. I don't know how the HTML Viewer of Cinema 4D reacts on the protocol, it is very much dependend on the implementation. The http:// protocol for example implies that port 80 is used when doing a request to the server at the location.

    In case the HTML Viewer of Cinema 4D does handle the file:// protocol, it may try to do a request to the localhost on a specific port, and you'd need to start a socket serving this port providing the html content to be displayed.

    If not, you'd need to recognize if the the HTML Viewer tries to resolve an URL with file:// and internally point the HTML Viewer to another URL (for example localhost:1294 ) where again your own server listens or you instantly generate the HTML and pass it to the HTML Viewer (afaik, that is possible with SetHtml()?).

    The guys that implemented the HTML Viewer should be able to tell you more about what it does when recgonizing the file:// protocol.

    Best,
    Niklas



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

    On 15/11/2012 at 15:34, xxxxxxxx wrote:

    Yessss!!
     
    Cheers Niklas, managed to get something showing! My day has been made already.
     
    I'm really enjoying the prospects of what could be made with this plugin business stuff at the moment.... =) Cheers,
     
    WP.


Log in to reply