frmmain.dfm 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. object Form1: TForm1
  2. Left = 0
  3. Top = 0
  4. Caption = 'SQLDB Rest client demo'
  5. ClientHeight = 319
  6. ClientWidth = 527
  7. Color = clBtnFace
  8. Font.Charset = DEFAULT_CHARSET
  9. Font.Color = clWindowText
  10. Font.Height = -11
  11. Font.Name = 'Tahoma'
  12. Font.Style = []
  13. OldCreateOrder = False
  14. DesignSize = (
  15. 527
  16. 319)
  17. PixelsPerInch = 96
  18. TextHeight = 13
  19. object Label1: TLabel
  20. Left = 16
  21. Top = 8
  22. Width = 158
  23. Height = 13
  24. Caption = 'SQLDBRest bridge resource URL:'
  25. end
  26. object Label2: TLabel
  27. Left = 16
  28. Top = 54
  29. Width = 48
  30. Height = 13
  31. Caption = 'Username'
  32. end
  33. object LEPassword: TLabel
  34. Left = 172
  35. Top = 54
  36. Width = 46
  37. Height = 13
  38. Caption = 'Password'
  39. FocusControl = EPassword
  40. end
  41. object DBNavigator1: TDBNavigator
  42. Left = 16
  43. Top = 81
  44. Width = 240
  45. Height = 25
  46. DataSource = DSRest
  47. TabOrder = 0
  48. end
  49. object DBGrid1: TDBGrid
  50. Left = 16
  51. Top = 112
  52. Width = 498
  53. Height = 199
  54. Anchors = [akLeft, akTop, akRight, akBottom]
  55. DataSource = DSRest
  56. TabOrder = 1
  57. TitleFont.Charset = DEFAULT_CHARSET
  58. TitleFont.Color = clWindowText
  59. TitleFont.Height = -11
  60. TitleFont.Name = 'Tahoma'
  61. TitleFont.Style = []
  62. end
  63. object EURL: TEdit
  64. Left = 16
  65. Top = 24
  66. Width = 417
  67. Height = 21
  68. Anchors = [akLeft, akTop, akRight]
  69. TabOrder = 2
  70. Text = 'http://192.168.0.98:3000/projects/'
  71. end
  72. object BFetch: TButton
  73. Left = 439
  74. Top = 22
  75. Width = 75
  76. Height = 25
  77. Anchors = [akTop, akRight]
  78. Caption = 'Fetch data'
  79. TabOrder = 3
  80. OnClick = BFetchClick
  81. end
  82. object EUserName: TEdit
  83. Left = 70
  84. Top = 51
  85. Width = 96
  86. Height = 21
  87. Anchors = [akLeft, akTop, akRight]
  88. TabOrder = 4
  89. Text = 'Michael'
  90. end
  91. object EPassword: TEdit
  92. Left = 224
  93. Top = 51
  94. Width = 134
  95. Height = 21
  96. Anchors = [akLeft, akTop, akRight]
  97. PasswordChar = '*'
  98. TabOrder = 5
  99. Text = 'secret'
  100. end
  101. object DSRest: TDataSource
  102. DataSet = CDSRest
  103. Left = 72
  104. Top = 128
  105. end
  106. object CDSRest: TClientDataSet
  107. Aggregates = <>
  108. Params = <>
  109. Left = 128
  110. Top = 128
  111. end
  112. object RestClient: TIdHTTP
  113. AllowCookies = True
  114. ProxyParams.BasicAuthentication = False
  115. ProxyParams.ProxyPort = 0
  116. Request.ContentLength = -1
  117. Request.ContentRangeEnd = -1
  118. Request.ContentRangeStart = -1
  119. Request.ContentRangeInstanceLength = -1
  120. Request.Accept = 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
  121. Request.BasicAuthentication = False
  122. Request.UserAgent = 'Mozilla/3.0 (compatible; Indy Library)'
  123. Request.Ranges.Units = 'bytes'
  124. Request.Ranges = <>
  125. HTTPOptions = [hoInProcessAuth, hoForceEncodeParams]
  126. Left = 200
  127. Top = 128
  128. end
  129. end