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.

Checkbox Behaviour

3 posts in Objects Last posting was on 2008-01-07 17:04:19.0Z
Jason Lipman Posted on 2007-12-10 16:07:13.0Z
From: "Jason Lipman" <NOSPAMjlipman@healthtrans.com>
Newsgroups: sybase.public.powerbuilder.objects
Subject: Checkbox Behaviour
Lines: 19
Organization: HealthTrans
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: 63.150.175.5
X-Original-NNTP-Posting-Host: 63.150.175.5
Message-ID: <475d6431$1@forums-1-dub>
Date: 10 Dec 2007 08:07:13 -0800
X-Trace: forums-1-dub 1197302833 63.150.175.5 (10 Dec 2007 08:07:13 -0800)
X-Original-Trace: 10 Dec 2007 08:07:13 -0800, 63.150.175.5
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9552
Article PK: 736707

PB 9 and up / Oracle 9x

I have a checkbox that toggles some date selection columns and their text
fields to visible true/false. If you click the checkbox rapidly, the columns
become out of sync with the checkbox! From talking with non-PB developers,
we're thinking this is a Windows NOWAIT issue catching up to my PB code. I
do have lots of ancestor code being evaluated. For this checkbox, none of
the ancestor code would be used, but the logic walkthru seems to slow things
down enough where this is an issue.

When I try this checkbox with no ancestor code to invoke, you can click as
fast as you want with no errors.

So, how should I handle this? Can I invoke a WAIT state for this clicked
event?

Jason Lipman


"John Olson [Team Sybase]" <john.olson Posted on 2007-12-14 17:17:43.0Z
From: "John Olson [Team Sybase]" <john.olson@nospam_teamsybase.com>
Newsgroups: sybase.public.powerbuilder.objects
References: <475d6431$1@forums-1-dub>
Subject: Re: Checkbox Behaviour
Lines: 36
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.3138
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: ip72-220-91-214.sd.sd.cox.net
X-Original-NNTP-Posting-Host: ip72-220-91-214.sd.sd.cox.net
Message-ID: <4762bab7$1@forums-1-dub>
Date: 14 Dec 2007 09:17:43 -0800
X-Trace: forums-1-dub 1197652663 72.220.91.214 (14 Dec 2007 09:17:43 -0800)
X-Original-Trace: 14 Dec 2007 09:17:43 -0800, ip72-220-91-214.sd.sd.cox.net
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9560
Article PK: 736710

You could use a flag and timer to ignore subsequent clicks.

1. declare a var flag to indicate wait state
2. on click check the flag. If in wait state then tell PB to ignore the
click.
3. if not in wait state turn on flag and set timer
4. in timer event if flag is set unset flag and turn off timer

Regards,
John

Team Sybase

"Jason Lipman" <NOSPAMjlipman@healthtrans.com> wrote in message
news:475d6431$1@forums-1-dub...
> PB 9 and up / Oracle 9x
>
> I have a checkbox that toggles some date selection columns and their text
> fields to visible true/false. If you click the checkbox rapidly, the
> columns become out of sync with the checkbox! From talking with non-PB
> developers, we're thinking this is a Windows NOWAIT issue catching up to
> my PB code. I do have lots of ancestor code being evaluated. For this
> checkbox, none of the ancestor code would be used, but the logic walkthru
> seems to slow things down enough where this is an issue.
>
> When I try this checkbox with no ancestor code to invoke, you can click as
> fast as you want with no errors.
>
> So, how should I handle this? Can I invoke a WAIT state for this clicked
> event?
>
> Jason Lipman
>


Jeff Gibson Posted on 2008-01-07 17:04:19.0Z
Reply-To: "Jeff Gibson" <jgibson@interceptsolutions.com>
From: "Jeff Gibson" <jgibson@interceptsolutions.com>
Newsgroups: sybase.public.powerbuilder.objects
References: <475d6431$1@forums-1-dub>
Subject: Re: Checkbox Behaviour
Lines: 33
Organization: Intercept Solutions
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; Response
NNTP-Posting-Host: mail.rpindustries.com
X-Original-NNTP-Posting-Host: mail.rpindustries.com
Message-ID: <47825b93@forums-1-dub>
Date: 7 Jan 2008 09:04:19 -0800
X-Trace: forums-1-dub 1199725459 66.0.110.244 (7 Jan 2008 09:04:19 -0800)
X-Original-Trace: 7 Jan 2008 09:04:19 -0800, mail.rpindustries.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9582
Article PK: 736725

Jason,

Is this a standard win32 checkbox control, or is this a checkbox on a
datawindow??

TIA

Jeff Gibson
Intercept Solutions - Sybase SQL Anywhere OEM Partner
Nashville, TN

"Jason Lipman" <NOSPAMjlipman@healthtrans.com> wrote in message
news:475d6431$1@forums-1-dub...
> PB 9 and up / Oracle 9x
>
> I have a checkbox that toggles some date selection columns and their text
> fields to visible true/false. If you click the checkbox rapidly, the
> columns become out of sync with the checkbox! From talking with non-PB
> developers, we're thinking this is a Windows NOWAIT issue catching up to
> my PB code. I do have lots of ancestor code being evaluated. For this
> checkbox, none of the ancestor code would be used, but the logic walkthru
> seems to slow things down enough where this is an issue.
>
> When I try this checkbox with no ancestor code to invoke, you can click as
> fast as you want with no errors.
>
> So, how should I handle this? Can I invoke a WAIT state for this clicked
> event?
>
> Jason Lipman
>