uo_editmask_date.sru 917 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. $PBExportHeader$uo_editmask_date.sru
  2. forward
  3. global type uo_editmask_date from editmask
  4. end type
  5. end forward
  6. global type uo_editmask_date from editmask
  7. integer width = 443
  8. integer height = 88
  9. integer textsize = -9
  10. integer weight = 400
  11. fontcharset fontcharset = gb2312charset!
  12. fontpitch fontpitch = variable!
  13. string facename = "宋体"
  14. long textcolor = 33554432
  15. string text = "none"
  16. alignment alignment = center!
  17. borderstyle borderstyle = stylelowered!
  18. maskdatatype maskdatatype = datetimemask!
  19. string mask = "yyyy-mm-dd"
  20. boolean spin = true
  21. end type
  22. global uo_editmask_date uo_editmask_date
  23. on uo_editmask_date.create
  24. end on
  25. on uo_editmask_date.destroy
  26. end on
  27. event rbuttondown;s_calender_arg s_calender
  28. s_calender.PointerX = THIS.PointerX()
  29. s_calender.PointerY = THIS.PointerY()
  30. s_calender.X = THIS.X
  31. s_calender.Y = THIS.Y
  32. OpenWithParm(w_calendar,s_calender)
  33. THIS.Text = String(id_date_selected)
  34. end event