Some Questions about BitmapButton

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

On 29/10/2008 at 03:04, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   10.5 
Platform:   Windows  ;   
Language(s) :     C++  ;

---------
Hi,

I am very sorry if this has been discussed at length, but I couldn't find the information using the search engine.

I am trying to construct a toolbar like menu (like the main toolbar in C4D). Since I couldn't find any UI element to use I am guessing it has to be done with CustomGUI elements. BitmapButton looks like a candidate to me, but I just can't figure out how to use it correctly. I found some code snippets in the forums using AddCustomGui(), which works...but I am trying to add the buttons via a resource file. I inserted a BITMAPBUTTON ID {} field, which seems to be parsed without errors, but how do I access the buttons methods (SetImage() etc.?)...am I completely off track here?

Are there other ways to generate a graphic style button menu in a plugin (besides from using a UserArea and just painting the buttons on there)?

Many thanks

Markus

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

On 29/10/2008 at 04:23, xxxxxxxx wrote:

I found some others posts that instructed to create a toolbar inside C4D and then load it inside the plugin using LoadFile...how to I get my plugin commands to show up in C4Ds palette manager though?

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

On 29/10/2008 at 08:26, xxxxxxxx wrote:

I finally found a way to display my BitmapButtons. They show fine and display a previously registered icon.

Also they have the toggle and button states enabled, they create an event which I can see in Command(). How do I check and set the button's enabled status though? SetBool doesn't seem to work...

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

On 03/11/2008 at 01:46, xxxxxxxx wrote:

Please post some code otherwise I can't reproduce your problem.

cheers,
Matthias