Update CommandData icon
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 28/11/2008 at 04:12, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 11
Platform:
Language(s) : C++ ;---------
Hi!I created a CommandData Plugin which is attached to the Cinema 4D startup layout. Is it possible to change the icon while C4D is running?
Thanks.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 28/11/2008 at 04:33, xxxxxxxx wrote:
Use the MSG_GETCUSTOMICON message to change the icon.
cheers,
Matthias -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 28/11/2008 at 04:53, xxxxxxxx wrote:
Hi Mattias,
currently I don't understand where to call it!?
I tried this:message with type=MSG_GETCUSTOMICON was never called.
> <code>
> Bool Message(LONG type, void* data)
> {
> if(type == MSG_GETCUSTOMICON)
> {
> GePrint("changed icon");
> GetCustomIconData *cid = (GetCustomIconData* )data;
> if(cid)
> {
> cid->dat->bmp->FlushAll();
> cid->filled = TRUE;
> }
> }
> }
> </code>The other way:
> <code>
> BasePlugin* plug = FindPlugin(id, 0);
> GetCustomIconData idata;
> plug->Message(MSG_GETCUSTOMICON, &idata;);
>
> *idata does not contain the bitmap*
> </code>Thanks.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 28/11/2008 at 05:10, xxxxxxxx wrote:
From where do you want to change the icon? MSG_GETCUSTOMICON is called here in my Message() function. As far as I can see it always called when there was some interaction with the icon, for instance if I open the plugin menu or execute the plugin by clicking on the icon.
cheers,
Matthias -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 28/11/2008 at 05:12, xxxxxxxx wrote:
I wanted to change the icon from another CommandData Execute()-method.
bye.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 28/11/2008 at 08:28, xxxxxxxx wrote:
Ok, I have to look into it.
cheers,
Matthias -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 28/11/2008 at 09:00, xxxxxxxx wrote:
Thank you.