Using an event name with a PowerBuilder event ID

PowerBuilder Native Interface

Using an event name with a PowerBuilder event ID

PBXEXPORT LPCTSTR PBXCALL PBX_GetDescription()
{
   static const TCHAR desc[] = {
      "class visualext from userobject\n"
      "event onclick pbm_lbuttonup\n"
      "event ondoubleclick pbm_lbuttondblclk\n"
      "subroutine setcolor(int r, int g, int b)\n"
      "subroutine settext(string txt)\n"
      "end class\n"
   };
return desc;
}

Generating event syntax automatically

 "event onclick pbm_lbuttonup\n"

About the token name