Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Deactivate OLE/ActiveX control

2 posts in Objects Last posting was on 2009-02-24 14:27:37.0Z
neil Posted on 2008-11-13 06:32:29.0Z
Sender: 1e53.491bc7f3.1804289383@sybase.com
From: Neil
Newsgroups: sybase.public.powerbuilder.objects
Subject: Deactivate OLE/ActiveX control
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <491bc9fd.1e73.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
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
Lines: 25
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9793
Article PK: 736924

Hi,

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,
Neil


Dave Hauze Posted on 2009-02-24 14:27:37.0Z
From: "Dave Hauze" <david.hauze@steeldynamics.com>
Newsgroups: sybase.public.powerbuilder.objects
References: <491bc9fd.1e73.1681692777@sybase.com>
Subject: Re: Deactivate OLE/ActiveX control
Lines: 42
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <49a403d9$1@forums-1-dub>
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
Path: forums-1-dub!not-for-mail
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.

--
Dave Hauze

<Neil> wrote in message news:491bc9fd.1e73.1681692777@sybase.com...
> Hi,
>
> 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,
> Neil