mainfrm_pane.js 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. ////////////////////////////////////////////////////////////////////////////
  2. // System Pre-define Functions
  3. // 95099372-ef3e-11ea-9c81-bf848405c62e
  4. //Callback of data preparation stage before UI is fully loaded.
  5. function OnInitializeData(reload, preview)
  6. {
  7. }
  8. //Callback after UI is fully loaded and displayed.
  9. function OnReady(reload, preview)
  10. {
  11. }
  12. function OnCloseForm()
  13. {
  14. }
  15. function OnException(err)
  16. {
  17. //ui.MessageBox('Error', '' + err, MessageBox.Icon.Critical, MessageBox.Button.Ok);
  18. }
  19. //////////////////////////////////////////////////////////////////////////
  20. // Callback Functions.
  21. // 641a254c-ef3e-11ea-bc8a-379bb908bdd7
  22. //The message corresponding callback executed by the main form
  23. // when calling pui.fireEvent(type,para) in the Docker subform.
  24. function OnChildDockerMessage(type, para){
  25. }
  26. //////////////////////////////////////////////////////////////////////////
  27. // Utils Functions.
  28. // 6c165ad6-ef3e-11ea-987c-b761a131c2fe
  29. function onDragFile(filepath)
  30. {
  31. }
  32. /*Usage of BLOCK_EVENT
  33. BLOCK_EVENT(()=>{
  34. ui.[name].[var] = ...;
  35. });
  36. */
  37. function BLOCK_EVENT(cb)
  38. {
  39. ui.block_event = true;
  40. cb();
  41. ui.block_event = false;
  42. }