CreateBlankBox UDF

Started by
tip, 10 Jun 2011

6 posts in this topic

tip 2

Wayfarer

Active Members

2

99 posts

#1 ·
Posted 10 Jun 2011
(edited)

Hi,

I recently needed to place a semi transparent layer over a background image in order to make my label(text) controls more readable. Although I've tinkered with GDI+ functions, child guis etc., in the end I've come up with this. This UDF takes advantage of trancexx's GIFAnimations UDF and creates semi-transparent layer using several embeded(binary) PNG images.

I think it is very easy to use and it does the job the effective way without calling/registering bunch of redraw functions etc. (thanks to GIFAnimations UDF.)

An alternative function which creates the semi-transparent layer as child gui is also included. I really prefer _CreateBlankBox but it can be helpful if you are curious.

Share this post

Link to post

Share on other sites

picea892 6

Universalist

Active Members

6

691 posts

#4 ·
Posted 11 Jun 2011

Very neat...very complicated....I have experimented with this off and on over the years and come up with the below. There are known repaint problems with the controltoroundedrectangle function. But otherwise it is the effect you are looking for.

Share this post

Link to post

Share on other sites

Digisoul 1

Universalist

Active Members

1

334 posts

#5 ·
Posted 12 Jun 2011

Very neat...very complicated....I have experimented with this off and on over the years and come up with the below. There are known repaint problems with the controltoroundedrectangle function. But otherwise it is the effect you are looking for.