PowerBuilder finds and copies the following objects to the executable file.
PowerBuilder copies objects directly referenced in scripts to the executable file. For example:
If a window script contains the following statement, w_continue is copied to the executable file:
Open(w_continue)
If a menu item script refers to the global function f_calc, f_calc is copied to the executable file:
f_calc(EnteredValue)
If a window uses a pop-up menu using the following statements, m_new is copied to the executable file:
m_new mymenu mymenu = create m_new mymenu.m_file.PopMenu(PointerX(), PointerY())
PowerBuilder copies objects referenced in painters to the executable file. For example:
If a menu is associated with a window in the Window painter, the menu is copied to the executable file.
If a DataWindow object is associated with a DataWindow control in the Window painter, the DataWindow object is copied to the executable file.
If a window contains a custom user object that includes another user object, both user objects are copied.
If a resource is assigned in a painter, it is copied to the executable file. For example, when you place a Picture control in a window in the Window painter, the bitmap file you associate with it is copied.