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.

control meny X button object

7 posts in Objects Last posting was on 2002-11-20 15:33:23.0Z
Leon Mandel Posted on 2002-11-13 20:50:05.0Z
Newsgroups: sybase.public.powerbuilder.objects
Date: Wed, 13 Nov 2002 14:50:05 -0600
From: Leon Mandel <lmandel@sao.state.tx.us>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0
X-Accept-Language: en-us, en
MIME-Version: 1.0
Subject: control meny X button object
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 3
NNTP-Posting-Host: 204.65.67.207
Message-ID: <364_3DD2BAFD.3010903@sao.state.tx.us>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.objects:786
Article PK: 713350

Does anyone know what object type is a windows control menu and the X
button in it?

Thanks.

L.


Philip_Salgannik Posted on 2002-11-13 21:51:54.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: Philip_Salgannik
Date: Wed, 13 Nov 2002 16:51:54 -0500
Subject: Re: control meny X button object
Lines: 1
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Message-ID: <364_D468D7062ECA78CD00781BE285256C70.0076A6BA85256C70@webforums>
References: <364_3DD2BAFD.3010903@sao.state.tx.us>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com!webforums.sybase.com!news
Xref: forums-1-dub sybase.public.powerbuilder.objects:783
Article PK: 713349

What is it you are after?


Leon Mandel Posted on 2002-11-13 22:41:24.0Z
Newsgroups: sybase.public.powerbuilder.objects
Date: Wed, 13 Nov 2002 16:41:24 -0600
From: Leon Mandel <lmandel@sao.state.tx.us>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0
X-Accept-Language: en-us, en
MIME-Version: 1.0
Subject: Re: control meny X button object
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 17
NNTP-Posting-Host: 204.65.67.207
Message-ID: <364_3DD2D514.30407@sao.state.tx.us>
References: <364_3DD2BAFD.3010903@sao.state.tx.us> <364_D468D7062ECA78CD00781BE285256C70.0076A6BA85256C70@webforums>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.objects:782
Article PK: 713348

Once in a while, when a user x's out of the app, after the closequerry,
a dw losefocus event fires (since the dw is the last obj. with focus).
In the losefocus event, I do some things based on the type of object is
gaining focuse (window!, commandbutton!, etc). Well, most of the time,
when I X out of the app, the losefoucs event does nothing, since the
window is closed and is no longer valid. Apparently, at times it sees
it as a valid object gaining focus and subsequently tries to manioulate
things, and then I get a Null object reference error.

Any ideas?

Philip_Salgannik wrote:
> What is it you are after?


Simon Caldwell [TeamSybase] Posted on 2002-11-14 11:13:17.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: "Simon Caldwell [TeamSybase]" <simonDOTcaldwellATbigfootDOTcom>
Subject: Re: control meny X button object
Date: Thu, 14 Nov 2002 11:13:17 -0000
Lines: 31
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: ip-80-242-36-231.aramiska-arc.aramiska.net 80.242.36.231
Message-ID: <364_fzOTiE9iCHA.199@forums.sybase.com>
References: <364_3DD2BAFD.3010903@sao.state.tx.us> <364_D468D7062ECA78CD00781BE285256C70.0076A6BA85256C70@webforums> <364_3DD2D514.30407@sao.state.tx.us>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.objects:779
Article PK: 713340

First I'd consider whether there's an alternative to using the losefocus
event.
If there really isn't, then add
if not isvalid(this) then return
to the start of the script.
HTH
Simon

--
All views expressed in this message are my own and not necessarily those of
my employer

"Leon Mandel" <lmandel@sao.state.tx.us> wrote in message
news:3DD2D514.30407@sao.state.tx.us...
> Once in a while, when a user x's out of the app, after the closequerry,
> a dw losefocus event fires (since the dw is the last obj. with focus).
> In the losefocus event, I do some things based on the type of object is
> gaining focuse (window!, commandbutton!, etc). Well, most of the time,
> when I X out of the app, the losefoucs event does nothing, since the
> window is closed and is no longer valid. Apparently, at times it sees
> it as a valid object gaining focus and subsequently tries to manioulate
> things, and then I get a Null object reference error.
>
> Any ideas?
>
> Philip_Salgannik wrote:
> > What is it you are after?
>


Leon Mandel Posted on 2002-11-15 21:35:46.0Z
Newsgroups: sybase.public.powerbuilder.objects
Date: Fri, 15 Nov 2002 15:35:46 -0600
From: Leon Mandel <lmandel@sao.state.tx.us>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0
X-Accept-Language: en-us, en
MIME-Version: 1.0
Subject: Re: control meny X button object
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 30
NNTP-Posting-Host: 204.65.93.91
Message-ID: <364_3DD568B2.3040508@sao.state.tx.us>
References: <364_3DD2BAFD.3010903@sao.state.tx.us> <364_D468D7062ECA78CD00781BE285256C70.0076A6BA85256C70@webforums> <364_3DD2D514.30407@sao.state.tx.us> <364_fzOTiE9iCHA.199@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.objects:771
Article PK: 713337

Unfort. this did not do the trick.:(

Simon Caldwell [TeamSybase] wrote:
> First I'd consider whether there's an alternative to using the losefocus
> event.
> If there really isn't, then add
> if not isvalid(this) then return
> to the start of the script.
> HTH
> Simon
>
> --
> All views expressed in this message are my own and not necessarily those of
> my employer
>
>
> "Leon Mandel" <lmandel@sao.state.tx.us> wrote in message
> news:3DD2D514.30407@sao.state.tx.us...
>
>>Once in a while, when a user x's out of the app, after the closequerry,
>>a dw losefocus event fires (since the dw is the last obj. with focus).
>>In the losefocus event, I do some things based on the type of object is
>>gaining focuse (window!, commandbutton!, etc). Well, most of the time,
>>when I X out of the app, the losefoucs event does nothing, since the
>>window is closed and is no longer valid. Apparently, at times it sees
>>it as a valid object gaining focus and subsequently tries to manioulate
>>things, and then I get a Null object reference error.
>>
>>Any ideas?
>>
>>Philip_Salgannik wrote:
>>
>>>What is it you are after?
>>
>
>


Simon Caldwell [TeamSybase] Posted on 2002-11-20 15:33:23.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: "Simon Caldwell [TeamSybase]" <simonDOTcaldwellATbigfootDOTcom>
Subject: Re: control meny X button object
Date: Wed, 20 Nov 2002 15:33:23 -0000
Lines: 50
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: ip-80-242-36-231.aramiska-arc.aramiska.net 80.242.36.231
Message-ID: <364_8X#YByKkCHA.199@forums.sybase.com>
References: <364_3DD2BAFD.3010903@sao.state.tx.us> <364_D468D7062ECA78CD00781BE285256C70.0076A6BA85256C70@webforums> <364_3DD2D514.30407@sao.state.tx.us> <364_fzOTiE9iCHA.199@forums.sybase.com> <364_3DD568B2.3040508@sao.state.tx.us>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.objects:766
Article PK: 713328

It works for me.
You could also try posting the code from losefocus and do the check there.

--
All views expressed in this message are my own and not necessarily those of
my employer

"Leon Mandel" <lmandel@sao.state.tx.us> wrote in message
news:3DD568B2.3040508@sao.state.tx.us...
> Unfort. this did not do the trick.:(
>
> Simon Caldwell [TeamSybase] wrote:
> > First I'd consider whether there's an alternative to using the losefocus
> > event.
> > If there really isn't, then add
> > if not isvalid(this) then return
> > to the start of the script.
> > HTH
> > Simon
> >
> > --
> > All views expressed in this message are my own and not necessarily those
of
> > my employer
> >
> >
> > "Leon Mandel" <lmandel@sao.state.tx.us> wrote in message
> > news:3DD2D514.30407@sao.state.tx.us...
> >
> >>Once in a while, when a user x's out of the app, after the closequerry,
> >>a dw losefocus event fires (since the dw is the last obj. with focus).
> >>In the losefocus event, I do some things based on the type of object is
> >>gaining focuse (window!, commandbutton!, etc). Well, most of the time,
> >>when I X out of the app, the losefoucs event does nothing, since the
> >>window is closed and is no longer valid. Apparently, at times it sees
> >>it as a valid object gaining focus and subsequently tries to manioulate
> >>things, and then I get a Null object reference error.
> >>
> >>Any ideas?
> >>
> >>Philip_Salgannik wrote:
> >>
> >>>What is it you are after?
> >>
> >
> >
>


Leon Mandel Posted on 2002-11-14 19:17:23.0Z
Newsgroups: sybase.public.powerbuilder.objects
Date: Thu, 14 Nov 2002 13:17:23 -0600
From: Leon Mandel <lmandel@sao.state.tx.us>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0
X-Accept-Language: en-us, en
MIME-Version: 1.0
Subject: Re: control meny X button object
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 32
NNTP-Posting-Host: 204.65.93.237
Message-ID: <364_3DD3F6C3.4000608@sao.state.tx.us>
References: <364_3DD2BAFD.3010903@sao.state.tx.us> <364_D468D7062ECA78CD00781BE285256C70.0076A6BA85256C70@webforums> <364_3DD2D514.30407@sao.state.tx.us> <364_fzOTiE9iCHA.199@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.objects:776
Article PK: 713343

MAkes sense to me.

Unfortunately, losefocus is unavoidable in this case. I hate it.

Thanks.

L.

Simon Caldwell [TeamSybase] wrote:
> First I'd consider whether there's an alternative to using the losefocus
> event.
> If there really isn't, then add
> if not isvalid(this) then return
> to the start of the script.
> HTH
> Simon
>
> --
> All views expressed in this message are my own and not necessarily those of
> my employer
>
>
> "Leon Mandel" <lmandel@sao.state.tx.us> wrote in message
> news:3DD2D514.30407@sao.state.tx.us...
>
>>Once in a while, when a user x's out of the app, after the closequerry,
>>a dw losefocus event fires (since the dw is the last obj. with focus).
>>In the losefocus event, I do some things based on the type of object is
>>gaining focuse (window!, commandbutton!, etc). Well, most of the time,
>>when I X out of the app, the losefoucs event does nothing, since the
>>window is closed and is no longer valid. Apparently, at times it sees
>>it as a valid object gaining focus and subsequently tries to manioulate
>>things, and then I get a Null object reference error.
>>
>>Any ideas?
>>
>>Philip_Salgannik wrote:
>>
>>>What is it you are after?
>>
>
>