On 25/11/2014 at 02:09, xxxxxxxx wrote:
Hi,
I have a custom GUI button with tooltip in my plugin. I want some part of the tooltip to be in bold and the rest in normal font(similar to the buttons in the C4D panels like Cube, Freehand etc).
I am not sure how to make the tooltip bold. Any help would be appreciated. I am using the below code:
def CreateLayout(self) :
self.SetTitle("My Python Dialog")
self.GroupBegin(0, c4d.BFH_SCALEFIT|c4d.BFH_SCALEFIT, 3, 4, "Bitmap Example",0)
bc = c4d.BaseContainer() ######Create a new container to store the button image
bc.SetInt32(c4d.BITMAPBUTTON_BORDER, c4d.BORDER_OUT) #Sets the border to look like a button
bc.SetInt32(c4d.BITMAPBUTTON_ICONID1, c4d.RESOURCEIMAGE_MOVE) #####Sets Button Icon
bc.SetString(c4d.BITMAPBUTTON_TOOLTIP, "I am a tool tip")
bc.SetBool(c4d.BITMAPBUTTON_BUTTON, True)
self.myBitButton=self.AddCustomGui(MY_BITMAP_BUTTON, c4d.CUSTOMGUI_BITMAPBUTTON, "My Button", c4d.BFH_CENTER | c4d.BFV_CENTER, 50, 20, bc)
self.GroupEnd()
return True