DELPHI AREA
MESSAGE BOARD
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   FavoritesFavorites   Watched TopicsWatched Topics     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TPicShow and TStaticText

 
Post new topic   Reply to topic   printer-friendly view    DELPHI AREA Forum Index -> DELPHI AREA's Products
View previous topic :: View next topic  
Author Message
wsr2
Member


Joined: 29 Sep 2006
Posts: 2

PostPosted: 29/09/06 20:25    Post subject: TPicShow and TStaticText Reply with quote

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.
Back to top
View user's profile Send private message
Johnny_Bit
Moderator


Joined: 15 Jun 2003
Posts: 274

PostPosted: 29/09/06 21:00    Post subject: Reply with quote

TLabel with transparent on?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
wsr2
Member


Joined: 29 Sep 2006
Posts: 2

PostPosted: 30/09/06 05:32    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Johnny_Bit
Moderator


Joined: 15 Jun 2003
Posts: 274

PostPosted: 30/09/06 06:40    Post subject: Reply with quote

Could you post your code, we'll see what's wrong with it. Or maybe furthermore we'll get some improvements to picshow...
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Kambiz
Administrator


Joined: 07 Mar 2003
Posts: 1044
Location: Tehran, Iran

PostPosted: 30/09/06 07:02    Post subject: Reply with quote

Just drop StaticText on the form, bring it on front of PicShow, and set its transparency property to True.

That's all!

_________________
Kambiz
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    DELPHI AREA Forum Index -> DELPHI AREA's Products All times are GMT
Page 1 of 1

Add to favorites

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group