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.

How to trapping TabKey ?

12 posts in DataWindow Last posting was on 2008-03-17 18:33:02.0Z
Steven Posted on 2008-03-16 10:30:40.0Z
Sender: 17f6.47d6b9a0.1804289383@sybase.com
From: steven
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: How to trapping TabKey ?
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <47dcf6d0.2410.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 16 Mar 2008 02:30:40 -0800
X-Trace: forums-1-dub 1205663440 10.22.241.41 (16 Mar 2008 02:30:40 -0800)
X-Original-Trace: 16 Mar 2008 02:30:40 -0800, 10.22.241.41
Lines: 15
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86453
Article PK: 415715

Hello to you,

I'm using PB9

I created ue_key mapped to pbm_dwnkey into dw_1

I can trapped the downarrowkey, uparrowkey.
but I can't trapped the tabkey, why ?

Is there sample/example for trapped tabkey ?

Please advice & thanks in advance

Regards,
Steven


Jean Sagi Posted on 2008-03-16 16:02:13.0Z
From: Jean Sagi <jeansagi@myrealbox.com>
Organization: Oolnta Inc.
User-Agent: Thunderbird 2.0.0.12 (Windows/20080213)
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: How to trapping TabKey ?
References: <47dcf6d0.2410.1681692777@sybase.com>
In-Reply-To: <47dcf6d0.2410.1681692777@sybase.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <47dd4485$1@forums-1-dub>
Date: 16 Mar 2008 08:02:13 -0800
X-Trace: forums-1-dub 1205683333 10.22.241.152 (16 Mar 2008 08:02:13 -0800)
X-Original-Trace: 16 Mar 2008 08:02:13 -0800, vip152.sybase.com
Lines: 21
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86455
Article PK: 415717

tabkey! doesn't work?

J.

steven escribió:

> Hello to you,
>
> I'm using PB9
>
> I created ue_key mapped to pbm_dwnkey into dw_1
>
> I can trapped the downarrowkey, uparrowkey.
> but I can't trapped the tabkey, why ?
>
> Is there sample/example for trapped tabkey ?
>
> Please advice & thanks in advance
>
> Regards,
> Steven
>


"Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel Posted on 2008-03-16 16:13:47.0Z
From: "Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <47dcf6d0.2410.1681692777@sybase.com>
Subject: Re: How to trapping TabKey ?
Lines: 25
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <47dd473b@forums-1-dub>
Date: 16 Mar 2008 08:13:47 -0800
X-Trace: forums-1-dub 1205684027 10.22.241.152 (16 Mar 2008 08:13:47 -0800)
X-Original-Trace: 16 Mar 2008 08:13:47 -0800, vip152.sybase.com
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86456
Article PK: 415718

I just tried this in PB9 and it worked as expected
IF key = KeyTab! THEN
w_sandbox_frame.SetMicrohelp ('tab')
ELSE
w_sandbox_frame.SetMicrohelp ('something else')
END IF

<steven> wrote in message news:47dcf6d0.2410.1681692777@sybase.com...
> Hello to you,
>
> I'm using PB9
>
> I created ue_key mapped to pbm_dwnkey into dw_1
>
> I can trapped the downarrowkey, uparrowkey.
> but I can't trapped the tabkey, why ?
>
> Is there sample/example for trapped tabkey ?
>
> Please advice & thanks in advance
>
> Regards,
> Steven


Tom Mackin Posted on 2008-03-17 12:39:39.0Z
From: Tom Mackin <ThomasDOTMackinATLFGDOTcom>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: How to trapping TabKey ?
References: <47dcf6d0.2410.1681692777@sybase.com> <47dd473b@forums-1-dub>
In-Reply-To: <47dd473b@forums-1-dub>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <47de668b$1@forums-1-dub>
Date: 17 Mar 2008 04:39:39 -0800
X-Trace: forums-1-dub 1205757579 10.22.241.152 (17 Mar 2008 04:39:39 -0800)
X-Original-Trace: 17 Mar 2008 04:39:39 -0800, vip152.sybase.com
Lines: 50
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86459
Article PK: 415721

PB 11.1 8204

On a related note. I am trying to set the datawindow title to the
number of characters the user has typed. For most keystrokes the count
is always one character behind. If I press the delete key the count
will "catch up" and show the correct count. What am I missing?

In the 'key' event I POST the ue_settitle() event
THIS.EVENT POST ue_settitle()

ue_settitle() contains the following.

STRING ls_commenttext, ls_commentlen

THIS.AcceptText()

ls_commenttext = THIS.GetItemString( 1, "rpt_cmt" )
ls_commentlen = String( Len( ls_commenttext ), "#,###" )
// Set the title bar with the current char count
THIS.Title = "Current char count: " + ls_commentlen

Jerry Siegel [TeamSybase] wrote:
> I just tried this in PB9 and it worked as expected
> IF key = KeyTab! THEN
> w_sandbox_frame.SetMicrohelp ('tab')
> ELSE
> w_sandbox_frame.SetMicrohelp ('something else')
> END IF
>
> <steven> wrote in message news:47dcf6d0.2410.1681692777@sybase.com...
>
>>Hello to you,
>>
>>I'm using PB9
>>
>>I created ue_key mapped to pbm_dwnkey into dw_1
>>
>>I can trapped the downarrowkey, uparrowkey.
>>but I can't trapped the tabkey, why ?
>>
>>Is there sample/example for trapped tabkey ?
>>
>>Please advice & thanks in advance
>>
>>Regards,
>>Steven
>
>
>


"Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel Posted on 2008-03-17 13:14:08.0Z
From: "Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <47dcf6d0.2410.1681692777@sybase.com> <47dd473b@forums-1-dub> <47de668b$1@forums-1-dub>
Subject: Re: How to trapping TabKey ?
Lines: 57
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <47de6ea0$1@forums-1-dub>
Date: 17 Mar 2008 05:14:08 -0800
X-Trace: forums-1-dub 1205759648 10.22.241.152 (17 Mar 2008 05:14:08 -0800)
X-Original-Trace: 17 Mar 2008 05:14:08 -0800, vip152.sybase.com
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86460
Article PK: 415722

Without doing any experimentation, I suspect the POST. I can see why you
would not want to be doing an AcceptText in the key event, but that's going
to trigger ItemChanged.
Why not just use GetText() to determine the current contents of the comment?

"Tom Mackin" <ThomasDOTMackinATLFGDOTcom> wrote in message
news:47de668b$1@forums-1-dub...
> PB 11.1 8204
>
> On a related note. I am trying to set the datawindow title to the number
> of characters the user has typed. For most keystrokes the count is always
> one character behind. If I press the delete key the count will "catch up"
> and show the correct count. What am I missing?
>
> In the 'key' event I POST the ue_settitle() event
> THIS.EVENT POST ue_settitle()
>
> ue_settitle() contains the following.
>
> STRING ls_commenttext, ls_commentlen
>
> THIS.AcceptText()
>
> ls_commenttext = THIS.GetItemString( 1, "rpt_cmt" )
> ls_commentlen = String( Len( ls_commenttext ), "#,###" )
> // Set the title bar with the current char count
> THIS.Title = "Current char count: " + ls_commentlen
>
>
> Jerry Siegel [TeamSybase] wrote:
>> I just tried this in PB9 and it worked as expected
>> IF key = KeyTab! THEN
>> w_sandbox_frame.SetMicrohelp ('tab')
>> ELSE
>> w_sandbox_frame.SetMicrohelp ('something else')
>> END IF
>>
>> <steven> wrote in message news:47dcf6d0.2410.1681692777@sybase.com...
>>
>>>Hello to you,
>>>
>>>I'm using PB9
>>>
>>>I created ue_key mapped to pbm_dwnkey into dw_1
>>>
>>>I can trapped the downarrowkey, uparrowkey.
>>>but I can't trapped the tabkey, why ?
>>>
>>>Is there sample/example for trapped tabkey ?
>>>
>>>Please advice & thanks in advance
>>>
>>>Regards,
>>>Steven
>>
>>


Tom Mackin Posted on 2008-03-17 13:31:08.0Z
From: Tom Mackin <ThomasDOTMackinATLFGDOTcom>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: How to trapping TabKey ?
References: <47dcf6d0.2410.1681692777@sybase.com> <47dd473b@forums-1-dub> <47de668b$1@forums-1-dub> <47de6ea0$1@forums-1-dub>
In-Reply-To: <47de6ea0$1@forums-1-dub>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <47de729c$1@forums-1-dub>
Date: 17 Mar 2008 05:31:08 -0800
X-Trace: forums-1-dub 1205760668 10.22.241.152 (17 Mar 2008 05:31:08 -0800)
X-Original-Trace: 17 Mar 2008 05:31:08 -0800, vip152.sybase.com
Lines: 80
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86461
Article PK: 415723

Jerry,

I have tried GetText() and it gives the same results. What is
interesting is if I previously enter and save 100 characters into the
comment column, then go anywhere in the string and start hitting the
backspace, after the first press the title reads 100. After the second,
99. Both one keystroke off. If hit the delete key, the title will then
read 97. It catches up.

When entering new data, after the first keystroke it still reads 0,
after the second 1 characters. If I press the delete key it will jump
to 2 characters.

I'm stumped.

Tom

Jerry Siegel [TeamSybase] wrote:

> Without doing any experimentation, I suspect the POST. I can see why you
> would not want to be doing an AcceptText in the key event, but that's going
> to trigger ItemChanged.
> Why not just use GetText() to determine the current contents of the comment?
>
> "Tom Mackin" <ThomasDOTMackinATLFGDOTcom> wrote in message
> news:47de668b$1@forums-1-dub...
>
>>PB 11.1 8204
>>
>>On a related note. I am trying to set the datawindow title to the number
>>of characters the user has typed. For most keystrokes the count is always
>>one character behind. If I press the delete key the count will "catch up"
>>and show the correct count. What am I missing?
>>
>>In the 'key' event I POST the ue_settitle() event
>>THIS.EVENT POST ue_settitle()
>>
>>ue_settitle() contains the following.
>>
>>STRING ls_commenttext, ls_commentlen
>>
>>THIS.AcceptText()
>>
>>ls_commenttext = THIS.GetItemString( 1, "rpt_cmt" )
>>ls_commentlen = String( Len( ls_commenttext ), "#,###" )
>>// Set the title bar with the current char count
>>THIS.Title = "Current char count: " + ls_commentlen
>>
>>
>>Jerry Siegel [TeamSybase] wrote:
>>
>>>I just tried this in PB9 and it worked as expected
>>>IF key = KeyTab! THEN
>>> w_sandbox_frame.SetMicrohelp ('tab')
>>>ELSE
>>> w_sandbox_frame.SetMicrohelp ('something else')
>>>END IF
>>>
>>><steven> wrote in message news:47dcf6d0.2410.1681692777@sybase.com...
>>>
>>>
>>>>Hello to you,
>>>>
>>>>I'm using PB9
>>>>
>>>>I created ue_key mapped to pbm_dwnkey into dw_1
>>>>
>>>>I can trapped the downarrowkey, uparrowkey.
>>>>but I can't trapped the tabkey, why ?
>>>>
>>>>Is there sample/example for trapped tabkey ?
>>>>
>>>>Please advice & thanks in advance
>>>>
>>>>Regards,
>>>>Steven
>>>
>>>
>


"Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel Posted on 2008-03-17 14:23:00.0Z
From: "Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <47dcf6d0.2410.1681692777@sybase.com> <47dd473b@forums-1-dub> <47de668b$1@forums-1-dub> <47de6ea0$1@forums-1-dub> <47de729c$1@forums-1-dub>
Subject: Re: How to trapping TabKey ?
Lines: 87
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <47de7ec4$1@forums-1-dub>
Date: 17 Mar 2008 06:23:00 -0800
X-Trace: forums-1-dub 1205763780 10.22.241.152 (17 Mar 2008 06:23:00 -0800)
X-Original-Trace: 17 Mar 2008 06:23:00 -0800, vip152.sybase.com
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86462
Article PK: 415724

I got it to work with the EditChanged event - Len(data) does the trick.

"Tom Mackin" <ThomasDOTMackinATLFGDOTcom> wrote in message
news:47de729c$1@forums-1-dub...
> Jerry,
>
> I have tried GetText() and it gives the same results. What is interesting
> is if I previously enter and save 100 characters into the comment column,
> then go anywhere in the string and start hitting the backspace, after the
> first press the title reads 100. After the second, 99. Both one
> keystroke off. If hit the delete key, the title will then read 97. It
> catches up.
>
> When entering new data, after the first keystroke it still reads 0, after
> the second 1 characters. If I press the delete key it will jump to 2
> characters.
>
> I'm stumped.
>
> Tom
>
>
> Jerry Siegel [TeamSybase] wrote:
>
>> Without doing any experimentation, I suspect the POST. I can see why you
>> would not want to be doing an AcceptText in the key event, but that's
>> going to trigger ItemChanged.
>> Why not just use GetText() to determine the current contents of the
>> comment?
>>
>> "Tom Mackin" <ThomasDOTMackinATLFGDOTcom> wrote in message
>> news:47de668b$1@forums-1-dub...
>>
>>>PB 11.1 8204
>>>
>>>On a related note. I am trying to set the datawindow title to the number
>>>of characters the user has typed. For most keystrokes the count is
>>>always one character behind. If I press the delete key the count will
>>>"catch up" and show the correct count. What am I missing?
>>>
>>>In the 'key' event I POST the ue_settitle() event
>>>THIS.EVENT POST ue_settitle()
>>>
>>>ue_settitle() contains the following.
>>>
>>>STRING ls_commenttext, ls_commentlen
>>>
>>>THIS.AcceptText()
>>>
>>>ls_commenttext = THIS.GetItemString( 1, "rpt_cmt" )
>>>ls_commentlen = String( Len( ls_commenttext ), "#,###" )
>>>// Set the title bar with the current char count
>>>THIS.Title = "Current char count: " + ls_commentlen
>>>
>>>
>>>Jerry Siegel [TeamSybase] wrote:
>>>
>>>>I just tried this in PB9 and it worked as expected
>>>>IF key = KeyTab! THEN
>>>> w_sandbox_frame.SetMicrohelp ('tab')
>>>>ELSE
>>>> w_sandbox_frame.SetMicrohelp ('something else')
>>>>END IF
>>>>
>>>><steven> wrote in message news:47dcf6d0.2410.1681692777@sybase.com...
>>>>
>>>>
>>>>>Hello to you,
>>>>>
>>>>>I'm using PB9
>>>>>
>>>>>I created ue_key mapped to pbm_dwnkey into dw_1
>>>>>
>>>>>I can trapped the downarrowkey, uparrowkey.
>>>>>but I can't trapped the tabkey, why ?
>>>>>
>>>>>Is there sample/example for trapped tabkey ?
>>>>>
>>>>>Please advice & thanks in advance
>>>>>
>>>>>Regards,
>>>>>Steven
>>>>
>>>>
>>


Tom Mackin Posted on 2008-03-17 14:42:13.0Z
From: Tom Mackin <ThomasDOTMackinATLFGDOTcom>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: How to trapping TabKey ?
References: <47dcf6d0.2410.1681692777@sybase.com> <47dd473b@forums-1-dub> <47de668b$1@forums-1-dub> <47de6ea0$1@forums-1-dub> <47de729c$1@forums-1-dub> <47de7ec4$1@forums-1-dub>
In-Reply-To: <47de7ec4$1@forums-1-dub>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <47de8345$1@forums-1-dub>
Date: 17 Mar 2008 06:42:13 -0800
X-Trace: forums-1-dub 1205764933 10.22.241.152 (17 Mar 2008 06:42:13 -0800)
X-Original-Trace: 17 Mar 2008 06:42:13 -0800, vip152.sybase.com
Lines: 97
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86464
Article PK: 415726

PERFECT! I can start letting my hair grow out again.

Tom

Jerry Siegel [TeamSybase] wrote:

> I got it to work with the EditChanged event - Len(data) does the trick.
>
> "Tom Mackin" <ThomasDOTMackinATLFGDOTcom> wrote in message
> news:47de729c$1@forums-1-dub...
>
>>Jerry,
>>
>>I have tried GetText() and it gives the same results. What is interesting
>>is if I previously enter and save 100 characters into the comment column,
>>then go anywhere in the string and start hitting the backspace, after the
>>first press the title reads 100. After the second, 99. Both one
>>keystroke off. If hit the delete key, the title will then read 97. It
>>catches up.
>>
>>When entering new data, after the first keystroke it still reads 0, after
>>the second 1 characters. If I press the delete key it will jump to 2
>>characters.
>>
>>I'm stumped.
>>
>>Tom
>>
>>
>>Jerry Siegel [TeamSybase] wrote:
>>
>>
>>>Without doing any experimentation, I suspect the POST. I can see why you
>>>would not want to be doing an AcceptText in the key event, but that's
>>>going to trigger ItemChanged.
>>>Why not just use GetText() to determine the current contents of the
>>>comment?
>>>
>>>"Tom Mackin" <ThomasDOTMackinATLFGDOTcom> wrote in message
>>>news:47de668b$1@forums-1-dub...
>>>
>>>
>>>>PB 11.1 8204
>>>>
>>>>On a related note. I am trying to set the datawindow title to the number
>>>>of characters the user has typed. For most keystrokes the count is
>>>>always one character behind. If I press the delete key the count will
>>>>"catch up" and show the correct count. What am I missing?
>>>>
>>>>In the 'key' event I POST the ue_settitle() event
>>>>THIS.EVENT POST ue_settitle()
>>>>
>>>>ue_settitle() contains the following.
>>>>
>>>>STRING ls_commenttext, ls_commentlen
>>>>
>>>>THIS.AcceptText()
>>>>
>>>>ls_commenttext = THIS.GetItemString( 1, "rpt_cmt" )
>>>>ls_commentlen = String( Len( ls_commenttext ), "#,###" )
>>>>// Set the title bar with the current char count
>>>>THIS.Title = "Current char count: " + ls_commentlen
>>>>
>>>>
>>>>Jerry Siegel [TeamSybase] wrote:
>>>>
>>>>
>>>>>I just tried this in PB9 and it worked as expected
>>>>>IF key = KeyTab! THEN
>>>>>w_sandbox_frame.SetMicrohelp ('tab')
>>>>>ELSE
>>>>>w_sandbox_frame.SetMicrohelp ('something else')
>>>>>END IF
>>>>>
>>>>><steven> wrote in message news:47dcf6d0.2410.1681692777@sybase.com...
>>>>>
>>>>>
>>>>>
>>>>>>Hello to you,
>>>>>>
>>>>>>I'm using PB9
>>>>>>
>>>>>>I created ue_key mapped to pbm_dwnkey into dw_1
>>>>>>
>>>>>>I can trapped the downarrowkey, uparrowkey.
>>>>>>but I can't trapped the tabkey, why ?
>>>>>>
>>>>>>Is there sample/example for trapped tabkey ?
>>>>>>
>>>>>>Please advice & thanks in advance
>>>>>>
>>>>>>Regards,
>>>>>>Steven
>>>>>
>>>>>
>
>


Tom Mackin Posted on 2008-03-17 14:23:23.0Z
From: Tom Mackin <ThomasDOTMackinATLFGDOTcom>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: How to trapping TabKey ?
References: <47dcf6d0.2410.1681692777@sybase.com> <47dd473b@forums-1-dub> <47de668b$1@forums-1-dub> <47de6ea0$1@forums-1-dub> <47de729c$1@forums-1-dub>
In-Reply-To: <47de729c$1@forums-1-dub>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <47de7edb@forums-1-dub>
Date: 17 Mar 2008 06:23:23 -0800
X-Trace: forums-1-dub 1205763803 10.22.241.152 (17 Mar 2008 06:23:23 -0800)
X-Original-Trace: 17 Mar 2008 06:23:23 -0800, vip152.sybase.com
Lines: 89
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86463
Article PK: 415725

I just noticed that the itemchanged event does not fire until the second
character is pressed either. Bug? Or working as designed? :)

Tom

Tom Mackin wrote:

> Jerry,
>
> I have tried GetText() and it gives the same results. What is
> interesting is if I previously enter and save 100 characters into the
> comment column, then go anywhere in the string and start hitting the
> backspace, after the first press the title reads 100. After the second,
> 99. Both one keystroke off. If hit the delete key, the title will then
> read 97. It catches up.
>
> When entering new data, after the first keystroke it still reads 0,
> after the second 1 characters. If I press the delete key it will jump
> to 2 characters.
>
> I'm stumped.
>
> Tom
>
>
> Jerry Siegel [TeamSybase] wrote:
>
>> Without doing any experimentation, I suspect the POST. I can see why
>> you would not want to be doing an AcceptText in the key event, but
>> that's going to trigger ItemChanged.
>> Why not just use GetText() to determine the current contents of the
>> comment?
>>
>> "Tom Mackin" <ThomasDOTMackinATLFGDOTcom> wrote in message
>> news:47de668b$1@forums-1-dub...
>>
>>> PB 11.1 8204
>>>
>>> On a related note. I am trying to set the datawindow title to the
>>> number of characters the user has typed. For most keystrokes the
>>> count is always one character behind. If I press the delete key the
>>> count will "catch up" and show the correct count. What am I missing?
>>>
>>> In the 'key' event I POST the ue_settitle() event
>>> THIS.EVENT POST ue_settitle()
>>>
>>> ue_settitle() contains the following.
>>>
>>> STRING ls_commenttext, ls_commentlen
>>>
>>> THIS.AcceptText()
>>>
>>> ls_commenttext = THIS.GetItemString( 1, "rpt_cmt" )
>>> ls_commentlen = String( Len( ls_commenttext ), "#,###" )
>>> // Set the title bar with the current char count
>>> THIS.Title = "Current char count: " + ls_commentlen
>>>
>>>
>>> Jerry Siegel [TeamSybase] wrote:
>>>
>>>> I just tried this in PB9 and it worked as expected
>>>> IF key = KeyTab! THEN
>>>> w_sandbox_frame.SetMicrohelp ('tab')
>>>> ELSE
>>>> w_sandbox_frame.SetMicrohelp ('something else')
>>>> END IF
>>>>
>>>> <steven> wrote in message news:47dcf6d0.2410.1681692777@sybase.com...
>>>>
>>>>
>>>>> Hello to you,
>>>>>
>>>>> I'm using PB9
>>>>>
>>>>> I created ue_key mapped to pbm_dwnkey into dw_1
>>>>>
>>>>> I can trapped the downarrowkey, uparrowkey.
>>>>> but I can't trapped the tabkey, why ?
>>>>>
>>>>> Is there sample/example for trapped tabkey ?
>>>>>
>>>>> Please advice & thanks in advance
>>>>>
>>>>> Regards,
>>>>> Steven
>>>>
>>>>
>>>>
>>


"Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel Posted on 2008-03-17 14:52:04.0Z
From: "Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <47dcf6d0.2410.1681692777@sybase.com> <47dd473b@forums-1-dub> <47de668b$1@forums-1-dub> <47de6ea0$1@forums-1-dub> <47de729c$1@forums-1-dub> <47de7edb@forums-1-dub>
Subject: Re: How to trapping TabKey ?
Lines: 97
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <47de8594@forums-1-dub>
Date: 17 Mar 2008 06:52:04 -0800
X-Trace: forums-1-dub 1205765524 10.22.241.152 (17 Mar 2008 06:52:04 -0800)
X-Original-Trace: 17 Mar 2008 06:52:04 -0800, vip152.sybase.com
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86465
Article PK: 415727

I'm guessing that the AcceptText in the posted event (which will fire
ItemChanged - are you sure you want that?) doesn't reach the top of the
queue until the key event and whatever ensues are complete.

"Tom Mackin" <ThomasDOTMackinATLFGDOTcom> wrote in message
news:47de7edb@forums-1-dub...
>I just noticed that the itemchanged event does not fire until the second
>character is pressed either. Bug? Or working as designed? :)
>
> Tom
>
> Tom Mackin wrote:
>
>> Jerry,
>>
>> I have tried GetText() and it gives the same results. What is
>> interesting is if I previously enter and save 100 characters into the
>> comment column, then go anywhere in the string and start hitting the
>> backspace, after the first press the title reads 100. After the second,
>> 99. Both one keystroke off. If hit the delete key, the title will then
>> read 97. It catches up.
>>
>> When entering new data, after the first keystroke it still reads 0, after
>> the second 1 characters. If I press the delete key it will jump to 2
>> characters.
>>
>> I'm stumped.
>>
>> Tom
>>
>>
>> Jerry Siegel [TeamSybase] wrote:
>>
>>> Without doing any experimentation, I suspect the POST. I can see why you
>>> would not want to be doing an AcceptText in the key event, but that's
>>> going to trigger ItemChanged.
>>> Why not just use GetText() to determine the current contents of the
>>> comment?
>>>
>>> "Tom Mackin" <ThomasDOTMackinATLFGDOTcom> wrote in message
>>> news:47de668b$1@forums-1-dub...
>>>
>>>> PB 11.1 8204
>>>>
>>>> On a related note. I am trying to set the datawindow title to the
>>>> number of characters the user has typed. For most keystrokes the count
>>>> is always one character behind. If I press the delete key the count
>>>> will "catch up" and show the correct count. What am I missing?
>>>>
>>>> In the 'key' event I POST the ue_settitle() event
>>>> THIS.EVENT POST ue_settitle()
>>>>
>>>> ue_settitle() contains the following.
>>>>
>>>> STRING ls_commenttext, ls_commentlen
>>>>
>>>> THIS.AcceptText()
>>>>
>>>> ls_commenttext = THIS.GetItemString( 1, "rpt_cmt" )
>>>> ls_commentlen = String( Len( ls_commenttext ), "#,###" )
>>>> // Set the title bar with the current char count
>>>> THIS.Title = "Current char count: " + ls_commentlen
>>>>
>>>>
>>>> Jerry Siegel [TeamSybase] wrote:
>>>>
>>>>> I just tried this in PB9 and it worked as expected
>>>>> IF key = KeyTab! THEN
>>>>> w_sandbox_frame.SetMicrohelp ('tab')
>>>>> ELSE
>>>>> w_sandbox_frame.SetMicrohelp ('something else')
>>>>> END IF
>>>>>
>>>>> <steven> wrote in message news:47dcf6d0.2410.1681692777@sybase.com...
>>>>>
>>>>>
>>>>>> Hello to you,
>>>>>>
>>>>>> I'm using PB9
>>>>>>
>>>>>> I created ue_key mapped to pbm_dwnkey into dw_1
>>>>>>
>>>>>> I can trapped the downarrowkey, uparrowkey.
>>>>>> but I can't trapped the tabkey, why ?
>>>>>>
>>>>>> Is there sample/example for trapped tabkey ?
>>>>>>
>>>>>> Please advice & thanks in advance
>>>>>>
>>>>>> Regards,
>>>>>> Steven
>>>>>
>>>>>
>>>>>
>>>


Tom Mackin Posted on 2008-03-17 17:55:49.0Z
From: Tom Mackin <ThomasDOTMackinATLFGDOTcom>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: How to trapping TabKey ?
References: <47dcf6d0.2410.1681692777@sybase.com> <47dd473b@forums-1-dub> <47de668b$1@forums-1-dub> <47de6ea0$1@forums-1-dub> <47de729c$1@forums-1-dub> <47de7edb@forums-1-dub> <47de8594@forums-1-dub>
In-Reply-To: <47de8594@forums-1-dub>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <47deb0a5@forums-1-dub>
Date: 17 Mar 2008 09:55:49 -0800
X-Trace: forums-1-dub 1205776549 10.22.241.152 (17 Mar 2008 09:55:49 -0800)
X-Original-Trace: 17 Mar 2008 09:55:49 -0800, vip152.sybase.com
Lines: 130
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86468
Article PK: 415730

Jerry,

The code got real skinny. I am no longer using the key event.

This the new ae_editchanged() event

// Method: ae_editchanged
// Arguments: VALUE LONG row
// VALUE DWOBJECT dwo
// VALUE STRING data
// Returns: LONG // pbm_dwnchanging
THIS.EVENT ae_settitle( data )


And from ae_settitle()

// Method: ae_settitle
// Arguments: VALUE as_data
// Returns: (none)
// Set the title bar with the current character count
THIS.Title = "Current char count: " + String( Len( as_data ), "#,###" )

Thank you for your time.

Tom Mackin

Jerry Siegel [TeamSybase] wrote:

> I'm guessing that the AcceptText in the posted event (which will fire
> ItemChanged - are you sure you want that?) doesn't reach the top of the
> queue until the key event and whatever ensues are complete.
>
> "Tom Mackin" <ThomasDOTMackinATLFGDOTcom> wrote in message
> news:47de7edb@forums-1-dub...
>
>>I just noticed that the itemchanged event does not fire until the second
>>character is pressed either. Bug? Or working as designed? :)
>>
>>Tom
>>
>>Tom Mackin wrote:
>>
>>
>>>Jerry,
>>>
>>>I have tried GetText() and it gives the same results. What is
>>>interesting is if I previously enter and save 100 characters into the
>>>comment column, then go anywhere in the string and start hitting the
>>>backspace, after the first press the title reads 100. After the second,
>>>99. Both one keystroke off. If hit the delete key, the title will then
>>>read 97. It catches up.
>>>
>>>When entering new data, after the first keystroke it still reads 0, after
>>>the second 1 characters. If I press the delete key it will jump to 2
>>>characters.
>>>
>>>I'm stumped.
>>>
>>>Tom
>>>
>>>
>>>Jerry Siegel [TeamSybase] wrote:
>>>
>>>
>>>>Without doing any experimentation, I suspect the POST. I can see why you
>>>>would not want to be doing an AcceptText in the key event, but that's
>>>>going to trigger ItemChanged.
>>>>Why not just use GetText() to determine the current contents of the
>>>>comment?
>>>>
>>>>"Tom Mackin" <ThomasDOTMackinATLFGDOTcom> wrote in message
>>>>news:47de668b$1@forums-1-dub...
>>>>
>>>>
>>>>>PB 11.1 8204
>>>>>
>>>>>On a related note. I am trying to set the datawindow title to the
>>>>>number of characters the user has typed. For most keystrokes the count
>>>>>is always one character behind. If I press the delete key the count
>>>>>will "catch up" and show the correct count. What am I missing?
>>>>>
>>>>>In the 'key' event I POST the ue_settitle() event
>>>>>THIS.EVENT POST ue_settitle()
>>>>>
>>>>>ue_settitle() contains the following.
>>>>>
>>>>>STRING ls_commenttext, ls_commentlen
>>>>>
>>>>>THIS.AcceptText()
>>>>>
>>>>>ls_commenttext = THIS.GetItemString( 1, "rpt_cmt" )
>>>>>ls_commentlen = String( Len( ls_commenttext ), "#,###" )
>>>>>// Set the title bar with the current char count
>>>>>THIS.Title = "Current char count: " + ls_commentlen
>>>>>
>>>>>
>>>>>Jerry Siegel [TeamSybase] wrote:
>>>>>
>>>>>
>>>>>>I just tried this in PB9 and it worked as expected
>>>>>>IF key = KeyTab! THEN
>>>>>>w_sandbox_frame.SetMicrohelp ('tab')
>>>>>>ELSE
>>>>>>w_sandbox_frame.SetMicrohelp ('something else')
>>>>>>END IF
>>>>>>
>>>>>><steven> wrote in message news:47dcf6d0.2410.1681692777@sybase.com...
>>>>>>
>>>>>>
>>>>>>
>>>>>>>Hello to you,
>>>>>>>
>>>>>>>I'm using PB9
>>>>>>>
>>>>>>>I created ue_key mapped to pbm_dwnkey into dw_1
>>>>>>>
>>>>>>>I can trapped the downarrowkey, uparrowkey.
>>>>>>>but I can't trapped the tabkey, why ?
>>>>>>>
>>>>>>>Is there sample/example for trapped tabkey ?
>>>>>>>
>>>>>>>Please advice & thanks in advance
>>>>>>>
>>>>>>>Regards,
>>>>>>>Steven
>>>>>>
>>>>>>
>>>>>>
>
>


"Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel Posted on 2008-03-17 18:33:02.0Z
From: "Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <47dcf6d0.2410.1681692777@sybase.com> <47dd473b@forums-1-dub> <47de668b$1@forums-1-dub> <47de6ea0$1@forums-1-dub> <47de729c$1@forums-1-dub> <47de7edb@forums-1-dub> <47de8594@forums-1-dub> <47deb0a5@forums-1-dub>
Subject: Re: How to trapping TabKey ?
Lines: 131
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <47deb95e$1@forums-1-dub>
Date: 17 Mar 2008 10:33:02 -0800
X-Trace: forums-1-dub 1205778782 10.22.241.152 (17 Mar 2008 10:33:02 -0800)
X-Original-Trace: 17 Mar 2008 10:33:02 -0800, vip152.sybase.com
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86470
Article PK: 415732

Reminds me of the old joke about knowing which screw to turn ;-)

"Tom Mackin" <ThomasDOTMackinATLFGDOTcom> wrote in message
news:47deb0a5@forums-1-dub...
> Jerry,
>
> The code got real skinny. I am no longer using the key event.
>
> This the new ae_editchanged() event
>
> // Method: ae_editchanged
> // Arguments: VALUE LONG row // VALUE DWOBJECT dwo // VALUE STRING data //
> Returns: LONG // pbm_dwnchanging
> THIS.EVENT ae_settitle( data )
>
>
> And from ae_settitle()
>
> // Method: ae_settitle
> // Arguments: VALUE as_data // Returns: (none)
> // Set the title bar with the current character count
> THIS.Title = "Current char count: " + String( Len( as_data ), "#,###" )
>
> Thank you for your time.
>
> Tom Mackin
>
> Jerry Siegel [TeamSybase] wrote:
>
>> I'm guessing that the AcceptText in the posted event (which will fire
>> ItemChanged - are you sure you want that?) doesn't reach the top of the
>> queue until the key event and whatever ensues are complete.
>>
>> "Tom Mackin" <ThomasDOTMackinATLFGDOTcom> wrote in message
>> news:47de7edb@forums-1-dub...
>>
>>>I just noticed that the itemchanged event does not fire until the second
>>>character is pressed either. Bug? Or working as designed? :)
>>>
>>>Tom
>>>
>>>Tom Mackin wrote:
>>>
>>>
>>>>Jerry,
>>>>
>>>>I have tried GetText() and it gives the same results. What is
>>>>interesting is if I previously enter and save 100 characters into the
>>>>comment column, then go anywhere in the string and start hitting the
>>>>backspace, after the first press the title reads 100. After the second,
>>>>99. Both one keystroke off. If hit the delete key, the title will then
>>>>read 97. It catches up.
>>>>
>>>>When entering new data, after the first keystroke it still reads 0,
>>>>after the second 1 characters. If I press the delete key it will jump
>>>>to 2 characters.
>>>>
>>>>I'm stumped.
>>>>
>>>>Tom
>>>>
>>>>
>>>>Jerry Siegel [TeamSybase] wrote:
>>>>
>>>>
>>>>>Without doing any experimentation, I suspect the POST. I can see why
>>>>>you would not want to be doing an AcceptText in the key event, but
>>>>>that's going to trigger ItemChanged.
>>>>>Why not just use GetText() to determine the current contents of the
>>>>>comment?
>>>>>
>>>>>"Tom Mackin" <ThomasDOTMackinATLFGDOTcom> wrote in message
>>>>>news:47de668b$1@forums-1-dub...
>>>>>
>>>>>
>>>>>>PB 11.1 8204
>>>>>>
>>>>>>On a related note. I am trying to set the datawindow title to the
>>>>>>number of characters the user has typed. For most keystrokes the
>>>>>>count is always one character behind. If I press the delete key the
>>>>>>count will "catch up" and show the correct count. What am I missing?
>>>>>>
>>>>>>In the 'key' event I POST the ue_settitle() event
>>>>>>THIS.EVENT POST ue_settitle()
>>>>>>
>>>>>>ue_settitle() contains the following.
>>>>>>
>>>>>>STRING ls_commenttext, ls_commentlen
>>>>>>
>>>>>>THIS.AcceptText()
>>>>>>
>>>>>>ls_commenttext = THIS.GetItemString( 1, "rpt_cmt" )
>>>>>>ls_commentlen = String( Len( ls_commenttext ), "#,###" )
>>>>>>// Set the title bar with the current char count
>>>>>>THIS.Title = "Current char count: " + ls_commentlen
>>>>>>
>>>>>>
>>>>>>Jerry Siegel [TeamSybase] wrote:
>>>>>>
>>>>>>
>>>>>>>I just tried this in PB9 and it worked as expected
>>>>>>>IF key = KeyTab! THEN
>>>>>>>w_sandbox_frame.SetMicrohelp ('tab')
>>>>>>>ELSE
>>>>>>>w_sandbox_frame.SetMicrohelp ('something else')
>>>>>>>END IF
>>>>>>>
>>>>>>><steven> wrote in message news:47dcf6d0.2410.1681692777@sybase.com...
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>>Hello to you,
>>>>>>>>
>>>>>>>>I'm using PB9
>>>>>>>>
>>>>>>>>I created ue_key mapped to pbm_dwnkey into dw_1
>>>>>>>>
>>>>>>>>I can trapped the downarrowkey, uparrowkey.
>>>>>>>>but I can't trapped the tabkey, why ?
>>>>>>>>
>>>>>>>>Is there sample/example for trapped tabkey ?
>>>>>>>>
>>>>>>>>Please advice & thanks in advance
>>>>>>>>
>>>>>>>>Regards,
>>>>>>>>Steven
>>>>>>>
>>>>>>>
>>>>>>>
>>