CGTalk > Software Specific Forums > Maxon Cinema 4D
Login register
Thread Closed share thread « Previous Thread | Next Thread »  
 
Thread Tools Search this Thread Display Modes
Old 03-04-2006, 06:26 PM   #1
Myel
New Member
Murielle Kirkove
Belgium
 
Join Date: Feb 2006
Posts: 5
Adding Combo Box

Hi everyone!

My question is simple but I have worked on it during a long time!

How do we add a Combo Box in the Attribute Manager of a Plugin of type ObjectData. I have tried to put this code in the resource (.res) :

COMBOBOX ID_COMB
{
ALIGN_TOP; ALIGN_LEFT; SIZE 150, 0;
CHILDS
{
ID_COMB1, IDS_COMB1;
ID_COMB2, IDS_COMB2;
}
}


where ID_COMB1,ID_COMB2 are defined in c4d_symbols.h and IDS_COMB1 and IDS_COMB2 in the file .str related to my Plugin as

STRINGTABLE Omyplugin
{
IDS_COMB1 "Comb1";
IDS_COMB2 "Comb2";
}

and Cinema4d does not load all the Attribute Manager because there is an error in the file .res.

I have also tried to use the function
int GetDDescription(GeListNode * node, Description * description, LONG & flags)

but I do'nt know which type of CUSTOMGUI use with "DESC_CUSTOMGUI" for a Combo Box : it is not CUSTOMGUI_STRING...
Myel

 
Old 03-04-2006, 06:52 PM   #2
Per-Anders
helper bunny
 
Per-Anders's Avatar
CGTalk Forum Leader
portfolio
Per-Anders Edwards
Developer
The Third Party
USA
 
Join Date: Sep 2002
Posts: 12,708
it's a long value, so you add it as a LONG with a CYCLE for the entries, check teh description resource in the C++ SDK docs.
__________________
The Third Party | Homepage | My Reel
"You need to know what you're doing before you start, and to start because you need what you're doing."
 
Old 03-05-2006, 10:39 AM   #3
Myel
New Member
Murielle Kirkove
Belgium
 
Join Date: Feb 2006
Posts: 5
Combo Box

Ok, thans. It works!
Myel
 
Old 03-05-2006, 10:39 AM   #4
CGTalk Moderation
Lord of the posts
CGTalk Forum Leader
 
Join Date: Sep 2003
Posts: 1,066,481
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 04:00 AM.


Powered by vBulletin
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.