THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 19/11/2012 at 19:32, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 12
Platform: Mac ;
Language(s) : C++ ;
---------
Hello
I am slowly working my way through C++ the C4D way.
Working on MacOS 10.6 under XCode 4.5. So all my experiments are based on cinema4dsdk and other examples I have found here and elsewhere.
My question is:
How do I add a "LINK" field to a dialog?
Looking at some code from the NoskeWiki below all gadgets are created with "Add..." but going through the documentation I can't find any info on how to add a LINK to a dialog. I know how to put a LINK in a .res file but then have not been successful yet to actually use the data from a res file in a command/tool plugin. I did it in a Expression Plugin. Sorry, this is probably a real rookie question.....
virtual Bool CreateLayout(void)
{
this->SetTitle( "Object Converter" );
LONG SC_VH = BFH_SCALEFIT | BFV_SCALEFIT;
GroupBorderSpace( 10, 10, 10, 10 );
GroupSpace(5,5);
AddStaticText (DLG_LBL1, BFH_LEFT,0,0, "This plugin helps ready, clean and reduce models for export to programs ", BORDER_NONE);
AddStaticText (DLG_LBL2, BFH_LEFT,0,0, "like Unity. Click 'Help' for more info.", BORDER_NONE);
AddStaticText (DLG_LBL3, BFH_LEFT,0,0, "", BORDER_NONE);
GroupBegin( DLG_GRP2,SC_VH,2,0,"actions based on object names:",BFV_GRIDGROUP_EQUALROWS );
GroupBorder(BORDER_WITH_TITLE|BORDER_THIN_IN);
GroupBorderSpace( 5, 5, 5, 5 );
GroupSpace(3,3);
//AddSeparatorH (SC_VH);
//AddSeparatorH (SC_VH);
AddStaticText (DLG_LBL4, BFH_LEFT,100,0,"action:", BORDER_NONE);
AddStaticText (DLG_LBL5, BFH_LEFT,30,0,"text", BORDER_NONE);
AddCheckbox (DLG_CHK_DEL1, SC_VH,100,0,"delete objects containing:");
AddEditText (DLG_EDIT_DEL1STR, SC_VH,30,0);
AddCheckbox (DLG_CHK_TURNON, SC_VH,0,0,"make visible objects \" \" \" \" \" \" \" \":");
AddEditText (DLG_EDIT_TURNONSTR,SC_VH,0,0);