1. Richard Mendez
  2. PowerBuilder
  3. Wednesday, 4 December 2019 20:55 PM UTC

I am experiencing issues with pointer persistence with the native PowerBuilder SetPointer function and the external windows function call:

//...
//... create hourglass.
//...
ulong ll_handle ;
if ab_mode then
 ll_handle = handle(this) ;
 ii_return = setcapture(ll_handle) ;
 setpointer(hourglass!) ;
else ;
 releasecapture() ;
end if ;
 
Has anyone else experienced this? If so, does anyone have any recommendations? Thank you.
 
Sincerely,
Richard
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Thursday, 5 December 2019 11:41 AM UTC
  2. PowerBuilder
  3. # 1

Does this help? ( from http://www.konis.co.kr/ttboard/data/BRD_DATA/32%20Bit%20-%20Windows%20API%20Calls%20for%20PowerBuilder.htm )

 

Make sure your declaration is like these and use "SetCapture" instead of "setcapture", I'm not sure if the API functions are case-sensitive, for me this example works perfectly:

External Function:
-----------------
FUNCTION ulong SetCapture(ulong a) LIBRARY "User32.dll"
FUNCTION boolean ReleaseCapture( ) LIBRARY "User32.dll"

Script:
------
boolean rtn
ulong l_loop, u_test, u_long
u_test = handle(parent)
u_long = SetCapture(u_test)
SetPointer(SizeNWSE!)
for l_loop = 1 to 150000
next
rtn = ReleaseCapture( )

 

HIH

Comment
  1. Chris Pollach @Appeon
  2. Thursday, 5 December 2019 15:41 PM UTC
Hi Miguel;

FYI ... Yes, all Windows API calls *are* case sensitive.

Regards ... Chris
  1. Helpful
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Thursday, 5 December 2019 11:26 AM UTC
  2. PowerBuilder
  3. # 2

Hi Richard,

Which "issues"?

What is your External Function declaration?

And why are you ending every line with ";"?

regards,

MiguelL

 

Comment
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.