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 

Same Instance of OCX Forms being used

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





PostPosted: Fri Oct 22, 2004 3:32 pm    Post subject: Same Instance of OCX Forms being used Reply with quote



Hello,

Apologies if this quetion seems simple, but I've encountered an issue
which absolutely has me confused.

I have an ocx which is called from one part in my D6 MDI application.
And from another screen they can invoke the same OCX (therefore they
can both be open at the same time).

But I noticed that values in the one OCX form would be trasmitted to
the other. I have only noticed this when a pop-up window is created
inside the OCX and is displayed allowing th euser to enter
information. When the user goes to the first OCX, and opens the same
pop-up window, lo and behold the same value is there.

So my conslusion is that when creating an OCX it actually grabs the
existing one if available, and is manipluating the records which is
used when entering the field value in the popup window.

I hope I have made myself clear, as it is rather confusing to myself
at the moment.

Can anyone suggest how the Mian UserInterface can be modified to
create brand new instances? Or how I need to restructure my OCX,
internal pop-up forms, and records so that when they are created the
values are not fed back to the other instance?

Any help you can offer, would be grately appreciated...

Many Thanks

Mark
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.