Quantcast
Channel: SCN : All Content - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 2935

adding a key event to the application causes erratic behavior.

$
0
0

I am trying to add an event to my application (app object), this event is mapped to pbm_keydown. I am doing this to invoke the idle event of my app to lock the app whenever users press 'control-L' key together. Basically the code is as follows for this event:

 

if keyflags = 1 then

          if key = KeyL! then

                    this.triggerevent(idle!)

          end if

end if

 

But not only that this code does not get executed but also the fact that I simply add this event to my app object suddenly start to show some erratic behavior. After I add this event call to some of my global external functions that I need to call win api methods are no longer valid, even though the function declaration is there and intact. I have no idea why adding a key event to app will cause the api calls to stop working?


Viewing all articles
Browse latest Browse all 2935

Trending Articles