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.

focus

2 posts in Objects Last posting was on 2005-12-06 15:58:05.0Z
shif Posted on 2005-12-06 08:56:01.0Z
Sender: 3de.43953043.1804289383@sybase.com
From: shif
Newsgroups: sybase.public.powerbuilder.objects
Subject: focus
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <43955221.47c.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 6 Dec 2005 00:56:01 -0800
X-Trace: forums-1-dub 1133859361 10.22.241.41 (6 Dec 2005 00:56:01 -0800)
X-Original-Trace: 6 Dec 2005 00:56:01 -0800, 10.22.241.41
Lines: 13
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8724
Article PK: 735939

I am facing a problem in setting focus to my window
object.when
the aplication starts W1 winodow will ask userid and
password,the window is response type.and without closing W1
if password is right another entry screen window W2 main
type will open.
my problem is after closing the W2 window the focus is not
setting to W1,i have tried setfocus,handle at close event of
W2 but the
W1 window is not activating and focus is not going,then i
have to use mouse to click on W1 to set focus .how can i
solve this.
please help


Brad Wery Posted on 2005-12-06 15:58:05.0Z
From: Brad Wery <bradweryatagricoreunited.com>
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: focus
References: <43955221.47c.1681692777@sybase.com>
In-Reply-To: <43955221.47c.1681692777@sybase.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: ugg10.unitedgrain.ca
X-Original-NNTP-Posting-Host: ugg10.unitedgrain.ca
Message-ID: <4395b50d$1@forums-1-dub>
Date: 6 Dec 2005 07:58:05 -0800
X-Trace: forums-1-dub 1133884685 165.23.247.49 (6 Dec 2005 07:58:05 -0800)
X-Original-Trace: 6 Dec 2005 07:58:05 -0800, ugg10.unitedgrain.ca
Lines: 23
X-Authenticated-User: pb105beta
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8726
Article PK: 735941

Try posting the call to the setfocus function.

//Close Event
Post SetFocus(W1)
OR
W1.Post SetFocus()

Brad

shif wrote:
> I am facing a problem in setting focus to my window
> object.when
> the aplication starts W1 winodow will ask userid and
> password,the window is response type.and without closing W1
> if password is right another entry screen window W2 main
> type will open.
> my problem is after closing the W2 window the focus is not
> setting to W1,i have tried setfocus,handle at close event of
> W2 but the
> W1 window is not activating and focus is not going,then i
> have to use mouse to click on W1 to set focus .how can i
> solve this.
> please help