April 25, 2024, 07:50:42 AM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


Transparent static

Started by Andy, May 24, 2021, 09:25:38 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Andy

May 24, 2021, 09:25:38 PM Last Edit: May 24, 2021, 09:28:38 PM by Andy
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.
Day after day, day after day, we struck nor breath nor motion, as idle as a painted ship upon a painted ocean.

LarryMc

@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.
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

Andy

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.
Day after day, day after day, we struck nor breath nor motion, as idle as a painted ship upon a painted ocean.