uo_fileview.sru 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. $PBExportHeader$uo_fileview.sru
  2. forward
  3. global type uo_fileview from userobject
  4. end type
  5. end forward
  6. global type uo_fileview from userobject
  7. integer width = 1650
  8. integer height = 1296
  9. string text = "none"
  10. long tabtextcolor = 33554432
  11. long picturemaskcolor = 536870912
  12. end type
  13. global uo_fileview uo_fileview
  14. type variables
  15. Long ii_ScreenWidth = 3600
  16. long ii_ScreenHeight = 2300
  17. blob cur_data
  18. string cur_filename = ''
  19. boolean originalsize = false
  20. end variables
  21. forward prototypes
  22. public function integer of_showfile (blob arg_data, string arg_filename, ref string arg_msg)
  23. public subroutine of_set_originalsize (boolean arg_iforiginal)
  24. public subroutine of_setfilesize ()
  25. end prototypes
  26. public function integer of_showfile (blob arg_data, string arg_filename, ref string arg_msg);return 1
  27. end function
  28. public subroutine of_set_originalsize (boolean arg_iforiginal);originalsize = arg_iforiginal
  29. of_setfilesize()
  30. end subroutine
  31. public subroutine of_setfilesize ();
  32. end subroutine
  33. on uo_fileview.create
  34. end on
  35. on uo_fileview.destroy
  36. end on
  37. event constructor;environment env
  38. GetEnvironment(env)
  39. ii_ScreenWidth = env.ScreenWidth
  40. ii_ScreenHeight = env.ScreenHeight
  41. ii_ScreenWidth = PixelsToUnits(ii_ScreenWidth, XPixelsToUnits!)
  42. ii_ScreenHeight = PixelsToUnits(ii_ScreenHeight, XPixelsToUnits!)
  43. end event