Show popup by using the application key

 

horizontal rule

Home Next

Author Aart Onkenhout
Date 28-09-2000

 

New on keyboards is the so called application-key. Within Windows, pushing this key lets appear a popup-menu. You can use this in PowerBuilder also.

 

 

Code the following script in the key-event of your window.

 

Constant Integer    VK_APP = 93

m_popup             lmnu_Popup

 

If Message.WordParm = VK_APP Then

   lmnu_Popup = Create m_popup

   lmnu_Popup.m_edit.PopMenu( PointerX(), PointerY() )

End If