BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Accessing ActiveX-Form from a Thread

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi ActiveX Controls Development
View previous topic :: View next topic  
Author Message
Andreas Grotz
Guest





PostPosted: Fri Jul 09, 2004 3:26 pm    Post subject: Accessing ActiveX-Form from a Thread Reply with quote



Hi @ll

i've written an IRC-Client and want to convert it into an ActiveX
mhm before i converted it i used a trick to access the TForm in Thread

type tirc = class(tthread);
main:tmain; // << form
procedure execute;override;
end;

procedure tirc.execute;
begin
main.edit1.text:='someexample';
end;

but in ActiveX this dont work i get the Error: Incompatible Typ Tmain and
TGUID ...
is my main question is how can i access the Form(ActiveX)-Components from
inside the Thread ?!
in ActiveX theres no Object like main:tmain; which could i use...
so how can i realize this example in ActiveX ...

procedure tirc.execute;
begin
main.edit1.text:='someexample';
end;

(sorry for not attaching thread but thats 1500 lines hard work)

MfG Andrew


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi ActiveX Controls Development All times are GMT
Page 1 of 1

 
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.