Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. flatstyle, buttons with bitmaps, and transparency

flatstyle, buttons with bitmaps, and transparency

Scheduled Pinned Locked Moved .NET (Core and Framework)
helpquestiongraphicsalgorithmsregex
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Marc Clifton
    wrote on last edited by
    #1

    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"

    C 1 Reply Last reply
    0
    • M Marc Clifton

      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"

      C Offline
      C Offline
      Chris Jobson
      wrote on last edited by
      #2

      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

      M 1 Reply Last reply
      0
      • C 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

        M Offline
        M Offline
        Marc Clifton
        wrote on last edited by
        #3

        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"

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups