--- In [email protected], "mockey_a" <[EMAIL PROTECTED]> wrote:
>
> Hi.
> --- In [email protected], "swzoh" <seanzoh@> wrote:
> > I uploaded a new one, but, this one changes the cursor repeatedly,
> > which  is not good IMO. Suddenly I have to do this. One execution
> > used to be enough...
> 
> SetCursor has to be called repeatedly. But you can use SetClassLong:
> dll.call("SetClassLong|ui i i",hWnd,-12,dll.call("LoadCursor|ui 
> ui",0,32515))

Good! I read SetCursor has a problem in some systems.

BTW, SetClassLong seems to completely replace the cursor of the class,
at least in that open session, I mean, until PP is closed. So, I added
dll.call("SetClassLong|ui i i",hWnd,-12,dll.call("LoadCursor|ui ui",
0,32512))
to restore the original/standard one at the end of the script.

Strange thing:
SetClassLong worked fine with just one execution with Event, however,
never changed the shape if used with For() Loop
SetCursor just did the opposite, worked fine with For() Loop, however,
needed repeated executions if used with Event.

Cursor related API's seem a bit unreliable. Although I haven't tried
yet, maybe should use LoadImage instead of LoadCursor, or ...

Sean






Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to