| Event | pbm_event | ![]() |
event pbm_event;///This event is fired by Word ///Don't use this event directly, insteated use the events fired by this event string doc doc = String(lparam, "address") s_docs arg_docs string arr_doc[] f_string_array(doc, arr_doc, ";") IF UPPERBOUND(arr_doc) > 2 THEN arg_docs.handle = Trim(string(arr_doc[3])) arg_docs.name = Trim(String(arr_doc[2])) END IF IF UPPERBOUND(arr_doc) > 0 THEN choose case arr_doc[1] case "button" string btnName btnNAme = Trim(String(arr_doc[4])) POST EVENT pbw_btncliked(arg_docs, btnNAme) case "cmbBox" POST EVENT pbw_cmbchange() case "quit" POST EVENT pbw_quit() case "change" POST EVENT pbw_change() case "open" POST EVENT pbw_documentopen(arg_docs) case "close" POST EVENT pbw_documentclose(arg_docs) case "new" POST EVENT pbw_documentnew(arg_docs) case "save" POST EVENT pbw_documentsave(arg_docs) case "print" POST EVENT pbw_documentprint(arg_docs) end choose END IF end event