Toggle Button background (1 Viewer)

Arman

Registered User.
Local time
Today, 22:14
Joined
Dec 21, 2017
Messages
19
[SOLVED] Toggle Button background

Hi!

Is it possible to change the background of a toggle button to transparent (so that only the image I use for it will be visible. I'd like to remove both the border (which should be possible via setting the style to transparent) and the background color (currently some grey-ish color), but I don't know if it is possible.]
 

Attachments

  • MaTvoC6.jpg
    MaTvoC6.jpg
    5.4 KB · Views: 111
Last edited:

isladogs

MVP / VIP
Local time
Today, 21:14
Joined
Jan 14, 2017
Messages
18,258
Yes for standard command buttons - in design view go to the Property Sheet for the button & change Back Style to Transparent.
You will be left with just the button image (or text)

However, one cautionary word.
Doing this may make it not obvious that it is a button

EDIT
However, for toggle buttons, its not so easy
This is by design so you know which button has been toggled on
You can do a kludge that almost does this e.g. Use Theme = No ; BackColor = Form Color; Pressed Back Color = Form Color
But IMHO it makes the toggle buttons hard to use
 
Last edited:

Arman

Registered User.
Local time
Today, 22:14
Joined
Dec 21, 2017
Messages
19
Yes for standard command buttons - in design view go to the Property Sheet for the button & change Back Style to Transparent.
You will be left with just the button image (or text)

However, one cautionary word.
Doing this may make it not obvious that it is a button

EDIT
However, for toggle buttons, its not so easy
This is by design so you know which button has been toggled on
You can do a kludge that almost does this e.g. Use Theme = No ; BackColor = Form Color; Pressed Back Color = Form Color
But IMHO it makes the toggle buttons hard to use
Thank you for the reply. I certainly never thought of that idea, but man, it's really great and the result is proper.

What I do have concerns for is the flashing the toggle button sometimes provides (more randomly and on hover). Is there a way to get rid of it, bv any chance?
 

isladogs

MVP / VIP
Local time
Today, 21:14
Joined
Jan 14, 2017
Messages
18,258
I don't experience the issue you've described with toggle buttons
Other than suggesting you also make the hover colour the same as the normal colour, I'm not sure what to suggest.
 

Users who are viewing this thread

Top Bottom