BTW, please post in plain text - some newsreaders choke on rich text/HTML
--
Report Bugs: http://case-express.sybase.com/cx/welcome.do
Product Enhancement Requests:
http://my.isug.com/cgi-bin/1/c/submit_enhancement
"Dave Hauze" <david...@steeldynamics.com> wrote in message
news:49d63e0a$1@forums-1-dub...
Have a look at my CD Player I built from my STD Foundation classes. It
uses animated cursors. However, I believe Jerry is thinking about the
"pointer" property where you can assign a file (same in the DWO). For the CD
player, I wrote a section of code that trips through the control array and
assigns all the controls a .CUR file. So you could do that when a long
running process is running - then call this routine again to restore the
default arrow cursor after the process has completed.
You can download the example code at the new home of the Foundation
Classes ( http://sourceforge.net/projects/stdfndclass )at ...
http://sourceforge.net/project/showfiles.php?group_id=214437&package_id=310857
HTH
--
Regards ... Chris
ISUG - NA RUG Director
http://chrispollach.pbdjmagazine.com
"Dave Hauze" <david...@steeldynamics.com> wrote in message
news:49d64d14$1@forums-1-dub...
> Actually didn't realize I had it in HTML, hopefully this is better.
>
> Actually, in that section of help I believe it is referring setting up
> cursors in painters only (not in script) for things like the DragIcon in
> datawindows and whatnot. Here's the quote
>
> "In PowerBuilder's painters, you can specify the pointer shape that
> PowerBuilder displays when the user moves the pointer over a window, a
> control, or specific parts of a DataWindow object. The available shapes
> include the stock pointers listed above, as well as any custom cursor
> files you have."
>
> I have tried a filename in SetPointer instead of one of the Enumerated
> Values and it doesnt' work. So, I'm pretty sure the SetPointer option is
> not going to work. What I'm trying to find out if someone has found a
> different way to do what I am trying, to alter the pointer in Script
> without using one of the enumerated values for the SetPointer function...
> (again, I do think Sybase should overload that function and allow users to
> pass a .ICO, .PNG, .JPG, or .CUR file as an alternative to the enumerated
> values.) I'll be suggesting this at ISUG. Obviously I can't use the
> SetPointer function, is there some other function, or Windows API options
> I just have not been able to find?
>
> --
> Dave Hauze
> "Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com> wrote in message
> news:49d6448f$1@forums-1-dub...
Actually, in that section of help I believe it is referring setting up
cursors in painters only (not in script) for things like the DragIcon in
datawindows and whatnot. Here's the quote
"In PowerBuilder's painters, you can specify the pointer shape that
PowerBuilder displays when the user moves the pointer over a window, a
control, or specific parts of a DataWindow object. The available shapes
include the stock pointers listed above, as well as any custom cursor files
you have."
I have tried a filename in SetPointer instead of one of the Enumerated
Values and it doesnt' work. So, I'm pretty sure the SetPointer option is not
going to work. What I'm trying to find out if someone has found a different
way to do what I am trying, to alter the pointer in Script without using one
of the enumerated values for the SetPointer function... (again, I do think
Sybase should overload that function and allow users to pass a .ICO, .PNG,
.JPG, or .CUR file as an alternative to the enumerated values.) I'll be
suggesting this at ISUG. Obviously I can't use the SetPointer function, is
there some other function, or Windows API options I just have not been able
to find?
--
Dave Hauze
"Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com> wrote in message
news:49d6448f$1@forums-1-dub...
"Dave Hauze" <david...@steeldynamics.com> wrote in message
news:49d64d14$1@forums-1-dub...
--
Dave Hauze
"Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com> wrote in message
news:49d6601b$1@forums-1-dub...
--
Dave Hauze
"Chris Pollach" <cpol...@travel-net.com> wrote in message
news:49d65473@forums-1-dub...
However, I did find a way to set the cursor from a file (finally) using the
WindowsAPI.
//Add to Local External Functions
FUNCTION LONG LoadCursorFromFileW(STRING lpFileName) LIBRARY 'user32'
FUNCTION LONG SetCursor(LONG al_HCur) LIBRARY 'user32'
//Add to constructor event of object in question
il_MoveCursor = LoadCursorFromFileW('C:\Windows\Cursors\hmove.cur')
//Add to MouseMove event after conditions for Grab have been met
SetCursor(il_MoveCursor)
--
Dave Hauze
"Chris Pollach" <cpol...@travel-net.com> wrote in message
news:49d65473@forums-1-dub...
--
Report Bugs: http://case-express.sybase.com/cx/welcome.do
Product Enhancement Requests:
http://my.isug.com/cgi-bin/1/c/submit_enhancement
"Dave Hauze" <david...@steeldynamics.com> wrote in message
news:49de3d0a@forums-1-dub...
--
Dave Hauze
"Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com> wrote in message
news:49de57e2@forums-1-dub...