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.

Retrieve and Hourglass

5 posts in DataWindow Last posting was on 2009-05-12 08:36:26.0Z
"Hannjo Dybek" <h.dybek<nosp> Posted on 2009-05-05 12:40:17.0Z
From: "Hannjo Dybek" <h.dybek<nosp>@isv-gmbh<nosp>.de>
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Retrieve and Hourglass
Lines: 11
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4a0033b1$1@forums-1-dub>
Date: 5 May 2009 05:40:17 -0700
X-Trace: forums-1-dub 1241527217 10.22.241.152 (5 May 2009 05:40:17 -0700)
X-Original-Trace: 5 May 2009 05:40:17 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:89237
Article PK: 418487

Hello,

how can I switch-off the Hourglass during Retrieve in DataStore and
DataWindow?

PowerBuilder 11.5 build 3127

Regards
Hannjo


Thorsten Kummer Posted on 2009-05-05 14:02:32.0Z
From: Thorsten Kummer <thorsten.kummer@gmx.de>
User-Agent: Thunderbird 2.0.0.21 (Windows/20090302)
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: Retrieve and Hourglass
References: <4a0033b1$1@forums-1-dub>
In-Reply-To: <4a0033b1$1@forums-1-dub>
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4a0046f8$1@forums-1-dub>
Date: 5 May 2009 07:02:32 -0700
X-Trace: forums-1-dub 1241532152 10.22.241.152 (5 May 2009 07:02:32 -0700)
X-Original-Trace: 5 May 2009 07:02:32 -0700, vip152.sybase.com
Lines: 25
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:89239
Article PK: 418493

Hi Hannjo,

As far as I know you can't directly switch it off.

But you can explicitly set the MousePointer with the SetPointer()
Function to your desired shape (see documentation). Maybe the DW's
retrievestart() and retrieveend() events are a good point to jump in.
BTW, datawindows do show the Hourglass as well? I thought that it would
be only the default case with datawindow controls, anyway ....

HTH
Thorsten

Hannjo Dybek <h.dybek<nosp>@isv-gmbh schrieb:

> Hello,
>
> how can I switch-off the Hourglass during Retrieve in DataStore and
> DataWindow?
>
> PowerBuilder 11.5 build 3127
>
> Regards
> Hannjo
>
>


"Hannjo Dybek" <h.dybek<nosp> Posted on 2009-05-08 12:31:33.0Z
From: "Hannjo Dybek" <h.dybek<nosp>@isv-gmbh<nosp>.de>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <4a0033b1$1@forums-1-dub> <4a0046f8$1@forums-1-dub>
Subject: Re: Retrieve and Hourglass
Lines: 13
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4a042625@forums-1-dub>
Date: 8 May 2009 05:31:33 -0700
X-Trace: forums-1-dub 1241785893 10.22.241.152 (8 May 2009 05:31:33 -0700)
X-Original-Trace: 8 May 2009 05:31:33 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:89254
Article PK: 418507

Hello Thorsten,

thanks for your response. I have a longer operation (1-2 h) and the user has
the possibility to cancel with a cancel button. Now the cursor is flickering
and it isnt easy to click the cancel button.

It is a pity
Hannjo


Thorsten Kummer Posted on 2009-05-08 14:26:42.0Z
From: Thorsten Kummer <thorsten.kummer@gmx.de>
User-Agent: Thunderbird 2.0.0.21 (Windows/20090302)
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: Retrieve and Hourglass
References: <4a0033b1$1@forums-1-dub> <4a0046f8$1@forums-1-dub> <4a042625@forums-1-dub>
In-Reply-To: <4a042625@forums-1-dub>
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4a044122@forums-1-dub>
Date: 8 May 2009 07:26:42 -0700
X-Trace: forums-1-dub 1241792802 10.22.241.152 (8 May 2009 07:26:42 -0700)
X-Original-Trace: 8 May 2009 07:26:42 -0700, vip152.sybase.com
Lines: 22
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:89255
Article PK: 418506

hmmh.... and what if you let the user press the ESC key to cancel the
operation? This should be easier for your user than playing "the meaning
of life" and catch the button with the mouse :-)

Best wishes to Berlin!
Thorsten


Hannjo Dybek <h.dybek<nosp>@isv-gmbh schrieb:

> Hello Thorsten,
>
> thanks for your response. I have a longer operation (1-2 h) and the user has
> the possibility to cancel with a cancel button. Now the cursor is flickering
> and it isnt easy to click the cancel button.
>
> It is a pity
> Hannjo
>
>
>
>
>


Ivaylo Ivanov Posted on 2009-05-12 08:36:26.0Z
From: "Ivaylo Ivanov" <NOSPAM_i.ivanov@isy-dc.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <4a0033b1$1@forums-1-dub>
Subject: Re: Retrieve and Hourglass
Lines: 35
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4a09350a@forums-1-dub>
Date: 12 May 2009 01:36:26 -0700
X-Trace: forums-1-dub 1242117386 10.22.241.152 (12 May 2009 01:36:26 -0700)
X-Original-Trace: 12 May 2009 01:36:26 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:89263
Article PK: 418515

You can try another technique - with SetCapture and ReleaseCapture external
API functions.
Declare 2 external functions (eg. global ones or with a narrower scope, but
available from your retrieval logic):

FUNCTION ulong SetCapture(ulong a) LIBRARY "user32.dll"
FUNCTION boolean ReleaseCapture() LIBRARY "user32.dll"

Before dw.Retrieve statement issue:

ulong ll_handle, ll_rc
ll_handle = Handle(w_mycancelwindow)
ll_rc = SetCapture(ll_handle)
SetPointer(Arrow!)

After dw.Retrieve statement (eg. on RetrieveEnd, DBError...) issue:
ReleaseCapture()

HTH,
Ivaylo

"Hannjo Dybek @isv-gmbh .de>" <h.dybek<nospnosp> wrote in message
news:4a0033b1$1@forums-1-dub...
> Hello,
>
> how can I switch-off the Hourglass during Retrieve in DataStore and
> DataWindow?
>
> PowerBuilder 11.5 build 3127
>
> Regards
> Hannjo
>