THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 13/11/2012 at 20:25, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 13+
Platform:
Language(s) : C++ ; PYTHON ;
---------
Hey guys.
After discovering that Maxon changed the bitmap button definitions starting with R13. I'm having trouble getting the BITMAPBUTTON_OUTBORDER flags to work.
None of them are changing the way the button looks like they're supposed to.
I've tried this in both C++ and Python and get the same results.
I can make either an animated button that always has a flat (borderless) profile.
Or
I can make a raised button profile. But the button does not animate.
What I want is a raised button profile that also animates when clicked.
The BITMAPBUTTON_OUTBORDER flag BORDER_OUT is supposed to do that. But it isn't working for me.
In fact. None of the border flags are working for me.
//This code creates a Bitmap button with a raised profile
//But it does not animate when clicked
bc = c4d.BaseContainer()
self.GroupBegin(0, c4d.BFH_SCALEFIT|c4d.BFH_SCALEFIT, 0, 0, "Push Button",0)
self.GroupBorder(c4d.BORDER_BLACK)
bc.SetLong(c4d.BITMAPBUTTON_BORDER, c4d.BORDER_OUT) #Sets the border of the button to be raised like a typical button
bc.SetBool(c4d.BITMAPBUTTON_BUTTON, True) #<----Button does not animate when clicked
self.MY_BITMAP_BUTTON2 = self.AddCustomGui(MY_BITMAP_BUTTON2, c4d.CUSTOMGUI_BITMAPBUTTON, "Bitmap Button", c4d.BFH_SCALEFIT|c4d.BFH_SCALEFIT, 130, 30, bc)
//This code is supposed to create a Bitmap button with a raised profile..But the profile is always flat
//But it does animate when clicked
bc = c4d.BaseContainer()
self.GroupBegin(0, c4d.BFH_SCALEFIT|c4d.BFH_SCALEFIT, 0, 0, "Push Button",0)
self.GroupBorder(c4d.BORDER_BLACK)
bc.SetLong(c4d.BITMAPBUTTON_OUTBORDER, c4d.BORDER_OUT) #<----Does not work?
bc.SetBool(c4d.BITMAPBUTTON_BUTTON, True) #Makes the button animate(sink) when clicked
self.MY_BITMAP_BUTTON2 = self.AddCustomGui(MY_BITMAP_BUTTON2, c4d.CUSTOMGUI_BITMAPBUTTON, "Bitmap Button", c4d.BFH_SCALEFIT|c4d.BFH_SCALEFIT, 130, 30, bc)
Everything was working fine for me in R12. And I could create a raised button that animates when clicked
But the new changes are giving me problems.
What Am I doing wrong?
-ScottA