HYPERLINK description



  • On 27/03/2014 at 09:33, xxxxxxxx wrote:

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

    ---------
    Hi,

    I'm trying for hours to get a simple hyperlink work in the attribute manager. I took the example of the SDK help,

    HYPERLINK MY_LINK { STATIC_TEXT MAXONCOMPUTER; LINK_DEST HTTPMAXONNET; IS_LINK; }

    but I can't figure out where to define the STATIC_TEXT AND LINK_DEST ids and strings. Any help is appreciated.

    Thanks.



  • On 27/03/2014 at 11:46, xxxxxxxx wrote:

    The text & URL string values come from your .str file.

    Example:

    In your .h file add these IDs for the HL gizmo:  
      MY_LINK,  
      TEXT_ID,  
      LD_ID,      
      
      
      
    In your .str file add these:  
      MY_LINK       "My hyperlink Gizmo";  
      TEXT_ID       "Google";  
      LD_ID         "www.google.com";  
      
      
      
      
    In your .res file add this:  
      HYPERLINK MY_LINK { STATIC_TEXT TEXT_ID; LINK_DEST LD_ID; IS_LINK; } 
    

    -ScottA



  • On 28/03/2014 at 05:17, xxxxxxxx wrote:

    Thanks, but this was certainly the first I tried. But it doesn't work. Only "Documentation" ist displayed as a static text. No link. Any ideas?

    plugin.res:           
    HYPERLINK SIM_HELP { STATIC_TEXT HELPTEXT; LINK_DEST HELPLINK; IS_LINK; }

    plugin.h:
    SIM_HELP = 1012,
    HELPTEXT,
    HELPLINK,

    plugin.str:
    SIM_HELP "Documentation";
    HELPTEXT "Manual";
    HELPLINK "http://www.c4dplugin.com/drive/manual/index.html";



  • On 28/03/2014 at 07:50, xxxxxxxx wrote:

    It works fine for me in R13. So I don't know if this was broken later on.
    But that seems unlikely.

    What's odd about your results is that the text displayed for the URL is the text value for the gizmo.
    That sorta screams out to me that there's a ID problem somewhere. Possibly an ID assigned to two or more things. Or maybe the enum is failing to generate the proper ID#s.
    Maybe writing out the ID's by hand will fix it?

    That's all I can think of.

    -ScottA



  • On 03/12/2015 at 03:28, xxxxxxxx wrote:

    Hey Klaus, did you solve this problem?
    I'm having the exact same issue, I can see only the hyperlink label, not the link.
    Any one has any idea?



  • On 04/12/2015 at 13:56, xxxxxxxx wrote:

    Hi guys,

    just wanted to let you know, I can't get it to work either. And it's certainly no good sign, that it is nowhere used internally in a description resource. Unfortunately I haven't found the actual culprit, yet.
    As a workaround you could use a button in conjunction with GeOpenHTML().


Log in to reply