Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.3 KiB

  1. ;-----------------------------------------------------
  2. ; pushbutton.ntl - native theme language description
  3. ; for drawing the regular pushbutton background part
  4. ;-----------------------------------------------------
  5. [OptionBits]
  6. Flat = 0
  7. Mono = 1
  8. Soft = 2
  9. Default = 3
  10. Focus = 4
  11. [Drawing.Normal]
  12. ;------------- default -----------------
  13. if = Default(on)
  14. AddBorder = SIZE cxBorder, cyBorder, COLOR WindowFrame
  15. endif = Default
  16. ;------------- flat -----------------
  17. if = Flat(on)
  18. if = Mono(on)
  19. AddBorder = SIZE cxBorder, cyBorder COLOR WindowFrame
  20. AddBorder = SIZE cxBorder, cyBorder COLOR Window
  21. else = Mono(off)
  22. AddBorder = SIZE cxBorder, cyBorder COLOR ButtonShadow
  23. AddBorder = SIZE cxBorder, cyBorder COLOR ButtonFace
  24. endif = Mono
  25. ;------------- non-flat (3d) -----------------
  26. else = Flat(off)
  27. if = Soft(on)
  28. AddBorder = SIZE cxBorder, cyBorder COLOR ButtonHiLight
  29. else = Soft(off)
  30. AddBorder = SIZE cxBorder, cyBorder COLOR ButtonLight
  31. endif = Soft
  32. AddBorder = SIZE cxBorder, cyBorder COLOR ButtonDarkShadow
  33. endif = Flat
  34. FillRect = ButtonFace
  35. ;-------------- other state mappings -------------
  36. [Drawing.Hot]
  37. GotoState = Normal
  38. [Drawing.Pressed]
  39. SetOption = Flat
  40. GotoState = Normal
  41. [Drawing.Disabled]
  42. GotoState = Normal
  43. [Drawing.Defaulted]
  44. SetOption = Default
  45. GotoState = Normal