Set Opacity Of Rectangle

Please could somebody give me clear step by step instructions on how I can draw a rectangle that fills my rectangle grey with 50% opacity

g.forecolor=rgb(128,128,128,128)
g.fillrect 0,0,100,100

[quote=27762:@Dave S] g.forecolor=rgb(128,128,128,128) g.fillrect 0,0,100,100 [/quote]
I know how to make filled rectangle but how do I make it semi-transparent? Thanks anyway

You make it semi-transparent by doing exactly what I just posted.
the first 3 128’s are the “Gray”, the last one is the opacity.

[quote=27766:@Dave S]You make it semi-transparent by doing exactly what I just posted.
the first 3 128’s are the “Gray”, the last one is the opacity.[/quote]
Oh sorry. My bad. Thankyou very much for your help.

[quote=27766:@Dave S]You make it semi-transparent by doing exactly what I just posted.
the first 3 128’s are the “Gray”, the last one is the opacity.[/quote]
Platform not supported exception? Thanks in advance.

[quote=27766:@Dave S]You make it semi-transparent by doing exactly what I just posted.
the first 3 128’s are the “Gray”, the last one is the opacity.[/quote]
Ah, Xojo tells me I need to use GDI plus. Sorry to bother you.

[quote=27766:@Dave S]You make it semi-transparent by doing exactly what I just posted.
the first 3 128’s are the “Gray”, the last one is the opacity.[/quote]
How should I go about drawing over all of the controls in the window. Thanks

Not sure if you meant this, but putting a big canvas covering all the controls should let you draw over all them and remove the mess after if you wish.

Kay thanks. Hoping there would be a better method but oh well, it will probably do exactly what I want it to do.