IonicWind Software

IWBasic => General Questions => Topic started by: Andy on May 24, 2021, 09:25:38 PM

Title: Transparent static
Post by: Andy on May 24, 2021, 09:25:38 PM
I was wondering about transparent statics.

There is a post on here but it's not in IWB.

http://www.ionicwind.com/forums/index.php?topic=862.msg8801#msg8801

Anyone got an example of how to make one?

Thanks,
Andy.
Title: Re: Transparent static
Post by: LarryMc on May 25, 2021, 11:58:04 AM
@CTLSTCTRANS added to style

The transparent static controls work by copying the contents of the parent window into their background. If the background changes you'll need to invalidate the static control using this style either by using SetControlText, SetFont or SetControlColor to force it to repaint.
Title: Re: Transparent static
Post by: Andy on May 26, 2021, 05:35:21 AM
Larry,

Thanks for that one, looks like it's not documented.

What I was really trying to do was to drag some text (static control) over a region button and for that static to take on the background of the region button.

Pity.

Andy.