w_mface_base.srw 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. $PBExportHeader$w_mface_base.srw
  2. forward
  3. global type w_mface_base from window
  4. end type
  5. end forward
  6. global type w_mface_base from window
  7. integer x = 823
  8. integer y = 360
  9. integer width = 2016
  10. integer height = 1208
  11. boolean titlebar = true
  12. string title = "Untitled"
  13. boolean controlmenu = true
  14. boolean minbox = true
  15. boolean maxbox = true
  16. boolean resizable = true
  17. long backcolor = 16777215
  18. end type
  19. global w_mface_base w_mface_base
  20. type variables
  21. uo_picture_m io_cont
  22. end variables
  23. event mousemove;IF Not IsNull(io_cont) THEN
  24. IF io_cont.PictureName <> io_cont.is_picture THEN
  25. io_cont.PictureName = io_cont.is_picture
  26. //setnull(io_cont)
  27. END IF
  28. END IF
  29. uo_text_m po
  30. Long ll_no,i
  31. ll_no = UpperBound(This.Control[])
  32. TRY
  33. FOR i = 1 To ll_no
  34. IF This.Control[i].TypeOf() = statictext! THEN
  35. po = This.Control[i]
  36. IF po.Text <> '' And po.TextColor <> po.colour_leave THEN
  37. po.TextColor = po.colour_leave
  38. IF po.ifonraise = 0 Or po.Border = True THEN
  39. po.Border = False
  40. END IF
  41. END IF
  42. END IF
  43. NEXT
  44. Catch(RuntimeError e)
  45. // THROW e
  46. END TRY
  47. end event
  48. on w_mface_base.create
  49. end on
  50. on w_mface_base.destroy
  51. end on
  52. event open;environment exerun_env
  53. GetEnvironment(exerun_env )
  54. this.Move ( (PixelsToUnits(exerun_env.screenwidth, XPixelsToUnits!) - this.Width)/2,&
  55. (PixelsToUnits(exerun_env.screenheight, XPixelsToUnits!) - this.Height - 400 )/2) //
  56. setnull(io_cont)
  57. end event