Send own custom messages & change icon

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

On 24/05/2004 at 22:14, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   8.500 
Platform:   Windows  ;   
Language(s) :

---------
Hi.

1. Question: how i can send own custom messages? Is a unique ID for such own message needed?

2. Question: how i can change the icon of a tag 'on the fly'? (like icon of the instance object).

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

On 25/05/2004 at 17:44, xxxxxxxx wrote:

(Assuming C++.)
1. You can use SpecialEventAdd() with a unique plugin ID to send CoreMessage(), or simply Message() with a unique ID to send normal Atom messages.
2. I don't think it's possible, since the icon is shared between all instances of the tag. (Btw, does the instance object icon ever change? It didn't seem to when I tested it.)

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

On 25/05/2004 at 22:10, xxxxxxxx wrote:

Hi.
Instance object change own icon, if no master object assigned.

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

On 27/05/2004 at 05:18, xxxxxxxx wrote:

Ok, that's right. Unfortunately, according to the programmers, this isn't possible for plugin objects (or tags).

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

On 13/02/2007 at 12:32, xxxxxxxx wrote:

Well change icon was not possible with C4D 8.5 SDK but is it possible with SDK 9.6 or 10.0 ???

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

On 13/02/2007 at 13:07, xxxxxxxx wrote:

MSG_GETCUSTOMICON ;-) R10 only

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

On 16/02/2007 at 05:50, xxxxxxxx wrote:

Thanks !!!
One question more, how it used in TagData::Message()?
For me it is not working...

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

On 16/02/2007 at 05:58, xxxxxxxx wrote:

Hmm, I don´t know actually. I haven´t tried it yet. :) Spontaneously it should simply work like so:

GetCustomIconData* gcid = static_cast<GetCustomIconData*>(data);
if(gcid && bmp)
{
bmp->CopyTo(gcid->dat->bmp); //Or fill it otherwise
gcid->filled = TRUE;
return TRUE;
}

If it doesn´t I cannot say why. :-/

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

On 16/02/2007 at 06:02, xxxxxxxx wrote:

I just read that you can also directly assign your own bitmap when it´s not yet set up.