I ran through this problem and I hope you can help me find a
solution. I have a tab control, with 3 tab pages. each page
contains ole/activex --- a microsoft graph control. I set
its property to ActivateonDoubleClick.
So, when I doubleclick it, it is activated. When I am in
page1, then I doubleclick the activex control, it becomes
active. Then when I want to go to page2, I have to click
twice because the first click, was to deactivate the
activex, and the 2nd click is to change the tabpage
selection because it seems we have to deactivate the activex
first before we can do any other things --- "it seems".
Now, I would like to ask what is workaround on this
behaviour. I don't want to click twice. I want that when I
click on page2 it goes to page2 right away, no 2nd click.
What command/statement that would deactivate the activex? It
is just activated inplace not offsite.
I hope I have stated my problem clearly.
Thanks In Advance,
Subject: Deactivate OLE/ActiveX control
X-Mailer: WebNews to Mail Gateway v1.1t
Date: 12 Nov 2008 22:32:29 -0800
X-Trace: forums-1-dub 1226557949 10.22.241.41 (12 Nov 2008 22:32:29 -0800)
X-Original-Trace: 12 Nov 2008 22:32:29 -0800, 10.22.241.41
Xref: forums-1-dub sybase.public.powerbuilder.objects:9793
Article PK: 736924
Subject: Re: Deactivate OLE/ActiveX control
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Original
Date: 24 Feb 2009 06:27:37 -0800
X-Trace: forums-1-dub 1235485657 10.22.241.152 (24 Feb 2009 06:27:37 -0800)
X-Original-Trace: 24 Feb 2009 06:27:37 -0800, vip152.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.objects:9812
Article PK: 736944
Neil, can you provide some additional information? For instance, what
specific ActiveX control (name)? Also, is the property you mention
(ActivateOnDoubleClick) a property of the ActiveX Control or something else
you've coded within your application?
Aside from providing this information so I can help better, have you tried
things like using the tabpage selectionchanging event to set the Deactivate
property? Also, perhaps you could use the losefocus to deactivate the
ActiveX control. I was trying to simulate your problem, but without knowing
what control you are using it was not working out.