Page 1 of 1

TPicShow and TStaticText

PostPosted: September 29th, 2006, 8:25 pm
by wsr2
Hello. I'am from Russia, and my English language is very simple.
I'am use TPicShow in my project but then i'am place on the component TStaticText, his(TStaticText) background not transparent.


How place information above TPicShow without background?
For me it's very important.

Thanks, and excuse me my lng.

PostPosted: September 29th, 2006, 9:00 pm
by Johnny_Bit
TLabel with transparent on?

PostPosted: September 30th, 2006, 5:32 am
by wsr2
All about transparency and TLabel there. In this topic i have found how set transparency to TStaticText, but if I do it, I'am can't see the text :


Dear Kambiz suggest use OnAfterDrawFrame event to write text, but I can't find this event in TPicShow. I use OnAfterNewFrame event to set text ditectly and my program is terminated.

To set TStaticText as Parent to PicShow i'am using this code :
Windows.SetParent(statictext1.Handle, PicShow.Handle);

P.S. I'am using TPicShow v4.04

//mod edit: minor corrections.

PostPosted: September 30th, 2006, 6:40 am
by Johnny_Bit
Could you post your code, we'll see what's wrong with it. Or maybe furthermore we'll get some improvements to picshow...

PostPosted: September 30th, 2006, 7:02 am
by Kambiz
Just drop StaticText on the form, bring it on front of PicShow, and set its transparency property to True.

That's all!