flatstyle, buttons with bitmaps, and transparency
-
OK, they do not live happily together. A button with FlatStyle set to FlatStyle.System does not show a bitmap. Setting it to Popup or Flat is OK, but then the transparent background doesn't match the grey sheen color of the other non-bitmapped buttons. What is a person to do? Maybe I need to play with it some more, but while I do, is there anyone who's fixed this problem? Marc Help! I'm an AI running around in someone's f*cked up universe simulator.
Sensitivity and ethnic diversity means celebrating difference, not hiding from it. - Christian Graus
Every line of code is a liability - Taka Muraoka
Microsoft deliberately adds arbitrary layers of complexity to make it difficult to deliver Windows features on non-Windows platforms--Microsoft's "Halloween files" -
OK, they do not live happily together. A button with FlatStyle set to FlatStyle.System does not show a bitmap. Setting it to Popup or Flat is OK, but then the transparent background doesn't match the grey sheen color of the other non-bitmapped buttons. What is a person to do? Maybe I need to play with it some more, but while I do, is there anyone who's fixed this problem? Marc Help! I'm an AI running around in someone's f*cked up universe simulator.
Sensitivity and ethnic diversity means celebrating difference, not hiding from it. - Christian Graus
Every line of code is a liability - Taka Muraoka
Microsoft deliberately adds arbitrary layers of complexity to make it difficult to deliver Windows features on non-Windows platforms--Microsoft's "Halloween files"Are you assigning the bitmap directly to the Image property or using an ImageList (by setting the Button's ImageList and ImageIndex properties)? I've found that if I use the Image property there's no transparent colour, but if I put the bitmap in an ImageList then I can specify the colour to be treated as transparent in the bitmap. Good luck! Chris Jobson
-
Are you assigning the bitmap directly to the Image property or using an ImageList (by setting the Button's ImageList and ImageIndex properties)? I've found that if I use the Image property there's no transparent colour, but if I put the bitmap in an ImageList then I can specify the colour to be treated as transparent in the bitmap. Good luck! Chris Jobson
Chris Jobson wrote: Are you assigning the bitmap directly to the Image property Yes. Chris Jobson wrote: if I put the bitmap in an ImageList OK, I'll give that a try. Good grief. Thanks! Marc Help! I'm an AI running around in someone's f*cked up universe simulator.
Sensitivity and ethnic diversity means celebrating difference, not hiding from it. - Christian Graus
Every line of code is a liability - Taka Muraoka
Microsoft deliberately adds arbitrary layers of complexity to make it difficult to deliver Windows features on non-Windows platforms--Microsoft's "Halloween files"