Which objects are copied to the executable file
PowerBuilder finds and copies the following objects to the
executable file.
Objects that are directly referenced in
scripts
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:1Open(w_continue) -
If a menu item script refers to the global function
f_calc, f_calc is copied to the executable file:1f_calc(EnteredValue) -
If a window uses a pop-up menu using the following
statements, m_new is copied to the executable file:123m_new mymenumymenu = create m_newmymenu.m_file.PopMenu(PointerX(), PointerY())
Objects that are referenced in
painters
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.