On 13/03/2017 at 10:36, xxxxxxxx wrote:
I am using a c4d.CUSTOMGUI_BITMAPBUTTON with a transparent png. Does anyone know of a way to not have the background lighten up when hovering it?
def CreateLayout(self) :
path = os.path.join(os.path.dirname(__file__), "res", "icons", "icon.png")
icon = c4d.BaseContainer()
icon.SetLong(c4d.BITMAPBUTTON_BORDER, c4d.BORDER_NONE)
icon.SetLong(c4d.BITMAPBUTTON_OUTBORDER, c4d.BORDER_NONE)
icon.SetBool(c4d.BITMAPBUTTON_BUTTON, True)
icon.SetBool(c4d.BITMAPBUTTON_TOGGLE, False)
icon.SetBool(c4d.BITMAPBUTTON_NOBORDERDRAW, True)
icon.SetLong(c4d.BITMAPBUTTON_BACKCOLOR, c4d.COLOR_BG)
self.GroupBegin(GRP_BUTTON_GROUP, c4d.BFH_LEFT | c4d.BFV_TOP, cols=1)
area = self.AddCustomGui(GRP_ICON, c4d.CUSTOMGUI_BITMAPBUTTON, "icon", c4d.BFH_RIGHT | c4d.BFV_CENTER, 18, 18, icon)
area.SetImage(path, False, False)
self.GroupEnd()
return True
this all works fine, i get the button but i get a stupid box when i mouse over it.
Thanks!
-- edit: changed post title to reflect solved.