No background color proprety ? Really ?

hi
I’m trying to change the background color of pushbuttons but can’t find how…
is it possible ?

rgds

It is not. At least, not built-in.

A simple way to devise color buttons is to use rectangles, rounded on Mac, or square on Windows, with a label over.

Then you place the Action code into MouseDown.

Another way is to use a Bevel Button and load it with a color picture, or simply paint the color into it. This has the advantage to show the clicked state of the button. Here is an example.

Sub Open() dim p as new picture(me.width,me.height,32) p.graphics.ForeColor=rgb(255,0,0) p.graphics.FillRect(0,0,me.width,me.height) me.IconAlign = 1 me.Icon = p End Sub

[quote=104867:@Horacio Vilches]hi
I’m trying to change the background color of pushbuttons but can’t find how…
is it possible ?

rgds[/quote]
Not in a consistent cross platform way