On Sun, Feb 3, 2013 at 9:33 AM, Staffan Tylen <staffan.ty...@gmail.com>wrote:
> I'm trying to activate a WAIT cursor in a listview report COLUMNCLICK
> event handler using all the steps that are documented for the SetCursor
> method but I can't get the cursor to change shape. Tracing doesn't reveal
> any issues. My guess is that it has something to do with the method running
> unguarded. The column click action generates a custom sort which may take
> some time depending on the number of rows to be sorted and I wish to
> prevent that the user performs another mouse click action before the sort
> has finished. Suggestions anyone please?
>
I think the most common problem here is that you need to move the cursor
slightly in order for the operating system to redraw the cursor.
Although, thinking about this for a second, you may not be able to do what
you want. In a list-view, the header you see in report mode is a separate
dialog control called, not surprisingly a Header control. When you click
on the header, the mouse does not belong to the list-view, it belongs to
the Header control.
In ooDialog, in Rexx code, you can not work with a control unless there is
a class for it. The list-view control has APIs to get the list-view's
header control, but without a Header class in ooDialog there is no way to
take advantage of that.
You best shot will be to move the cursor over the list-view, change the
cursor shape, and jiggle the position. I'm not sure if that will work, but
it might. The only way to tell is to try it. By move the cursor over the
list-view, I mean move it down so it is over the list-view items, not over
the header control.
As far as preventing the user from clicking on the header before the sort
is finished, the typical thing to do would be to disable the Header
control. Of course you can not do that without a Header class in ooDialog.
I think the best you can do here is to set a flag when you start the sort
and then not respond to a column click if the flag is set. Clear the flag
when the sort is finished.
Let me know how you make out with the cursor shape.
--
Mark Miesfeld
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
_______________________________________________
Oorexx-users mailing list
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users