f_add_menuitem_print_dft_other.srf 812 B

12345678910111213141516171819
  1. $PBExportHeader$f_add_menuitem_print_dft_other.srf
  2. $PBExportComments$the main function...~r~n hehe, only few scripts. :)
  3. global type f_add_menuitem_print_dft_other from function_object
  4. end type
  5. forward prototypes
  6. global subroutine f_add_menuitem_print_dft_other (menu vmmenu, integer arg_sit, readonly string ositemtext, readonly string ositemtag)
  7. end prototypes
  8. global subroutine f_add_menuitem_print_dft_other (menu vmmenu, integer arg_sit, readonly string ositemtext, readonly string ositemtag);Integer iiPos //arg_sit //
  9. iiPos = UpperBound(vmMenu.Item)+1 // can only append now
  10. menu lm
  11. lm = CREATE m_dft_dwprint_print_item_other
  12. vmMenu.Item[iiPos] = lm.Item[1] //must be item[1], or you'll find a funny result
  13. vmMenu.Item[iiPos].Text = osItemText
  14. vmMenu.Item[iiPos].Tag = osItemTag
  15. end subroutine