1. appeon pb
  2. PowerBuilder
  3. Saturday, 2 December 2023 17:00 PM UTC

When I change pb control's pointer,and select a .cur file ,PB always tell me to specify a valid image,what kind of cursor file can be used with pb pointer?

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 5 December 2023 16:16 PM UTC
  2. PowerBuilder
  3. # 1

HI APB;

  This code works for me in a CB or PB as follows:

In a Post Constructor event ....

THIS.Pointer = "Search.cur"    // TEST

Then in CB or PB, the cursor is now a magnifying glass.

What seems to be the issue to me is that the various painter's (ie: Window / Visual UO) do not expose the "Pointer" property.

Regards ... Chris

Comment
There are no comments made yet.
appeon pb Accepted Answer Pending Moderation
  1. Saturday, 2 December 2023 19:26 PM UTC
  2. PowerBuilder
  3. # 2

I test this both in PB2019 R3 , PB 11.5 and PB 2022 R2, In PB 11.5 ,pointer file can be defined ,but 2019 and 2022 cant ,always respone invalid image .

I change  the pointer in sourcode , It works.

 

type cb_1 from commandbutton within w_cursot
integer x = 736
integer y = 420
integer width = 402
integer height = 132
integer taborder = 10
integer textsize = -10
integer weight = 400
fontcharset fontcharset = ansi!
fontpitch fontpitch = variable!
fontfamily fontfamily = swiss!
string facename = "Tahoma"
string pointer = "E:\test\Pics\Cursor\lperson.cur" --> i can edit this in edit source ,but cant do this in IDE 
string text = "none"
end type

Comment
  1. John Fauss
  2. Saturday, 2 December 2023 23:24 PM UTC
I suggest you open a bug report/ticket regarding this issue.
  1. Helpful
There are no comments made yet.
John Fauss Accepted Answer Pending Moderation
  1. Saturday, 2 December 2023 17:21 PM UTC
  2. PowerBuilder
  3. # 3

Documentation states that a cursor in .cur format can be used.

Can you please be a little more specific as to how and where you are specifying the name of the pointer/cursor file, as there are a variety of places that this can be specified. Also, what version/release/build of PB? Please consider zipping the .cur file and attaching it to a new reply in this thread so that others can attempt to use it.

Also: Please keep in mind that PB was first created several decades ago, so it may not support more recent enhancements to mouse cursors, such as animated cursors. I would not be surprised to learn that only older-style, non-animated cursors can be used.

One final thought: As with any external graphics resource file, you should use a relative path when specifying the .cur file and include it in a .pbr (resource file) when the app is built for deployment.

Best regards, John

Comment
  1. Chris Pollach @Appeon
  2. Saturday, 2 December 2023 18:09 PM UTC
Hi John;

I've used various newer cursurs & even animated ones for a few decades now. I wonder if your cursor file is of a weird format. Also, how are you mapping / using the cursor files as well.

Regards... Chris
  1. Helpful
  1. John Fauss
  2. Saturday, 2 December 2023 23:22 PM UTC
Hi, Chris! I've always been able to satisfy my project's requirements with the stock pointers, referring to them via the Pointer enumerated type. The original poster worded their issue in such a generic manner with no specifics that I followed up with additional questions and took a shot as to the cause of his/her issue. Ask an ill-defined question, get a s.w.a.g. for a response :-) Thanks for the confirmation that newer and animated cursors work properly.
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.