Plugin Cafe Homepage
Forum Home Forum Home > Plugin Cafe > SDK Help
  New Posts New Posts
  FAQ FAQ  Forum Search   Register Register  Login Login

get toggle state of BitmapButton

 Post Reply Post Reply
peterakos View Drop Down

Joined: 2015 Jul 13
Online Status: Offline
Posts: 344
Post Options Post Options   Quote peterakos Quote  Post ReplyReply Direct Link To This Post Topic: get toggle state of BitmapButton
    Posted: 2017 Sep 01 at 7:16am

User Information:

Cinema 4D Version:   R18 
Platform:   Windows  ;   
Language(s):     C++  ;   



I have a description bitmap button with 
container.SetBool(BITMAPBUTTON_TOGGLE, true);

I use the following to get the parameter.
(BitmapButtonStruct*)data->GetCustomDataType(CUSTOMDATATYPE_BITMAPBUTTON, BUTTON_ID);

But how can I get the toggle state ?

Thank you for your time.
Back to Top
Andreas Block View Drop Down
Forum Moderator
Forum Moderator

Joined: 2014 Oct 01
Location: Hannover
Online Status: Offline
Posts: 1822
Post Options Post Options   Quote Andreas Block Quote  Post ReplyReply Direct Link To This Post Posted: 2017 Sep 04 at 8:18am

unfortunately the toggle state is handled internally inside of the CustomGUI (not the CustomDataType), so there's no way to access it. You need to track it on your own in reaction to button presses.

SDK Support Engineer
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Bulletin Board Software by Web Wiz Forums® version 9.61 [Free Express Edition]
Copyright ©2001-2009 Web Wiz

This page was generated in 0.094 seconds.