On 20/01/2014 at 06:54, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R15
Platform: Windows ;
Language(s) : C++ ;
---------
I think I need to use HyperLinkCustomGui and HyperlinkData to download a file from the Internet.
Not to display it (that is done with HTMLViewerCustomGui), but to read and process it.
The manuals tells me "Hyper link data type ([CUSTOMDATATYPE_HYPER_LINK_STATIC](file:///D:/Users/pgrooff/Documents/pim/c4d/c++%20R15%20sdk/help/pages/customgui_hyperlink/enum_CUSTOM_HYPER_LI364.html#customdatatype_hyper_link_static1)) for use with the [HyperLinkCustomGui](file:///D:/Users/pgrooff/Documents/pim/c4d/c++%20R15%20sdk/help/pages/customgui_hyperlink/class_HyperLinkCusto821.html) GUI. Has to be created with [Alloc()](file:///D:/Users/pgrooff/Documents/pim/c4d/c++%20R15%20sdk/help/pages/lib_aes/class_AES9.html#alloc0) and destroyed with [Free()](file:///D:/Users/pgrooff/Documents/pim/c4d/c++%20R15%20sdk/help/pages/lib_aes/class_AES9.html#free1). You can use[AutoAlloc](file:///D:/Users/pgrooff/Documents/pim/c4d/c++%20R15%20sdk/help/pages/ge_autoptr/class_AutoAlloc33.html) to automate the allocation and destruction based on scope."
However, I do not know how to use them and I cannot find an example.
BaseContainer hyperlinkc;
hlcgsibl = (HyperLinkCustomGui* )AddCustomGui(1002, CUSTOMGUI_HYPER_LINK_STATIC, "Hyperlink", BFH_SCALEFIT|BFV_SCALEFIT, 900, 200, hyperlinkc);
String linkTextsIBL = "http://www.hdrlabs.com/sibl/index.html";
String labelTextsIBL = "Smart IBL overview";
hlcgsibl->SetLinkString(&linkTextsIBL, &labelTextsIBL);
Pim