Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Add menu scripts to trigger user events – PB Docs 2019 – PowerBuilder Library

Add menu scripts to trigger user events – PB Docs 2019

Add menu
scripts to trigger user events

Where you are

Modify the frame
menu

Create a new sheet
menu

> Add menu scripts
to trigger user events

Attach the new menu and
run the application

Now you add scripts to trigger user events from the sheet window
menu bar. You added these user events in Modifying the Ancestor
Window
. The Menu painter should still be open for the m_my_sheet
menu. If it is not, you can open it using the Open button in the
PowerBar.

  1. Select m_edit.m_insert in the first list box in the Script
    view

    or

    Double-click the Insert menu item in the WYSIWYG view.

    The full name of the Insert menu item displays in the first list
    box of the Script view. It includes the m_edit prefix to indicate that
    it is in the Edit menu.

  2. Select Clicked in the second drop-down box if it is not already
    selected.

    Type these lines for the Clicked event:

    The first two lines determine which sheet in the MDI frame is
    currently active. The third line triggers the user event ue_insert for
    the active sheet.

  3. Repeat steps 1 and 2 for the following menu items and
    scripts:

    Menu name

    Script for Clicked event

    m_edit.m_update

    m_edit.m_delete

  4. Select File>Save from the PowerBuilder menu bar.

    PowerBuilder compiles and saves the menu scripts.

  5. Click the Close button in PainterBar1

    or

    Select File>Close from the PowerBuilder menu bar.


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x