Skip to content

Commit 263c1a8

Browse files
committed
bk/2024-06-14-1058
1 parent 144738c commit 263c1a8

2 files changed

Lines changed: 42 additions & 52 deletions

File tree

Src/Chat/DelphiCopilot.Chat.View.dfm

Lines changed: 41 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ object DelphiCopilotChatView: TDelphiCopilotChatView
4141
TabOrder = 0
4242
object Splitter1: TSplitter
4343
Left = 18
44-
Top = 523
44+
Top = 520
4545
Width = 938
4646
Height = 3
4747
Cursor = crVSplit
@@ -55,7 +55,7 @@ object DelphiCopilotChatView: TDelphiCopilotChatView
5555
Left = 18
5656
Top = 15
5757
Width = 938
58-
Height = 505
58+
Height = 502
5959
Margins.Left = 0
6060
Margins.Top = 0
6161
Margins.Right = 0
@@ -80,10 +80,11 @@ object DelphiCopilotChatView: TDelphiCopilotChatView
8080
ShowHint = True
8181
TabOrder = 1
8282
Zoom = 100
83+
ExplicitHeight = 505
8384
end
8485
object pnBackQuestion: TPanel
8586
Left = 18
86-
Top = 526
87+
Top = 523
8788
Width = 938
8889
Height = 113
8990
Margins.Left = 0
@@ -95,42 +96,12 @@ object DelphiCopilotChatView: TDelphiCopilotChatView
9596
Padding.Top = 5
9697
ParentBackground = False
9798
TabOrder = 0
98-
object pnBackBtnSend: TPanel
99-
Left = 856
100-
Top = 5
101-
Width = 82
102-
Height = 108
103-
Margins.Left = 0
104-
Margins.Top = 0
105-
Margins.Right = 0
106-
Margins.Bottom = 0
107-
Align = alRight
108-
BevelOuter = bvNone
109-
Padding.Left = 3
110-
ParentBackground = False
111-
TabOrder = 0
112-
object btnSend: TButton
113-
AlignWithMargins = True
114-
Left = 3
115-
Top = 0
116-
Width = 79
117-
Height = 24
118-
Cursor = crHandPoint
119-
Margins.Left = 0
120-
Margins.Top = 0
121-
Margins.Right = 0
122-
Margins.Bottom = 0
123-
Align = alTop
124-
Caption = 'Send'
125-
TabOrder = 0
126-
OnClick = btnSendClick
127-
end
128-
end
99+
ExplicitTop = 526
129100
object mmQuestion: TMemo
130101
AlignWithMargins = True
131102
Left = 0
132103
Top = 5
133-
Width = 856
104+
Width = 938
134105
Height = 108
135106
Margins.Left = 0
136107
Margins.Top = 0
@@ -143,39 +114,63 @@ object DelphiCopilotChatView: TDelphiCopilotChatView
143114
Font.Name = 'Tahoma'
144115
Font.Style = []
145116
ParentFont = False
146-
TabOrder = 1
117+
TabOrder = 0
147118
OnChange = mmQuestionChange
148119
OnKeyDown = mmQuestionKeyDown
149120
OnKeyUp = mmQuestionKeyUp
150121
end
151122
end
152123
object pnBackStatusBar: TPanel
153124
Left = 18
154-
Top = 639
125+
Top = 636
155126
Width = 938
156-
Height = 22
127+
Height = 25
157128
Margins.Left = 0
158129
Margins.Top = 0
159130
Margins.Right = 0
160131
Margins.Bottom = 0
161132
Align = alBottom
162133
BevelOuter = bvNone
163134
Padding.Top = 3
135+
Padding.Bottom = 2
164136
ParentBackground = False
165137
TabOrder = 2
166138
object lbCurrentAI: TLabel
167139
Left = 0
168140
Top = 3
169141
Width = 56
170-
Height = 19
142+
Height = 20
171143
Cursor = crHandPoint
172144
Hint = 'AI being used'
145+
Margins.Left = 0
146+
Margins.Top = 0
147+
Margins.Right = 0
148+
Margins.Bottom = 0
173149
Align = alLeft
174150
Caption = 'lbCurrentAI'
175151
PopupMenu = pMenuCurrentAI
176152
OnClick = lbCurrentAIClick
153+
ExplicitTop = 1
177154
ExplicitHeight = 13
178155
end
156+
object btnSend: TButton
157+
AlignWithMargins = True
158+
Left = 864
159+
Top = 3
160+
Width = 74
161+
Height = 20
162+
Cursor = crHandPoint
163+
Margins.Left = 0
164+
Margins.Top = 0
165+
Margins.Right = 0
166+
Margins.Bottom = 0
167+
Align = alRight
168+
Caption = 'Send'
169+
TabOrder = 0
170+
OnClick = btnSendClick
171+
ExplicitTop = 1
172+
ExplicitHeight = 19
173+
end
179174
end
180175
end
181176
object pnWait: TPanel
@@ -231,7 +226,7 @@ object DelphiCopilotChatView: TDelphiCopilotChatView
231226
Left = 936
232227
Top = 8
233228
Width = 26
234-
Height = 66
229+
Height = 70
235230
Margins.Left = 0
236231
Margins.Top = 0
237232
Margins.Right = 0
@@ -252,9 +247,9 @@ object DelphiCopilotChatView: TDelphiCopilotChatView
252247
object btnCopy: TSpeedButton
253248
AlignWithMargins = True
254249
Left = 0
255-
Top = 20
250+
Top = 23
256251
Width = 26
257-
Height = 20
252+
Height = 23
258253
Cursor = crHandPoint
259254
Hint = 'Copy'
260255
Margins.Left = 0
@@ -278,15 +273,14 @@ object DelphiCopilotChatView: TDelphiCopilotChatView
278273
0202020F01010103030F0F0F0F0202020202020F01010101010F0E0F02020202
279274
0202020F0F0F0F0F0F0F0F02020202020202}
280275
OnClick = btnCopyClick
281-
ExplicitTop = 22
282-
ExplicitWidth = 23
276+
ExplicitTop = 24
283277
end
284278
object btnInsertAtCursor: TSpeedButton
285279
AlignWithMargins = True
286280
Left = 0
287281
Top = 0
288282
Width = 26
289-
Height = 20
283+
Height = 23
290284
Cursor = crHandPoint
291285
Hint = 'Insert Selected Text at Cursor'
292286
Margins.Left = 0
@@ -310,15 +304,13 @@ object DelphiCopilotChatView: TDelphiCopilotChatView
310304
080A0D0F12020202020202020202030507090B0E120202020202020202021212
311305
1212121212020202020202020202}
312306
OnClick = btnInsertAtCursorClick
313-
ExplicitLeft = 2
314-
ExplicitWidth = 21
315307
end
316308
object btnMoreActions: TSpeedButton
317309
AlignWithMargins = True
318310
Left = 0
319-
Top = 40
311+
Top = 46
320312
Width = 26
321-
Height = 20
313+
Height = 23
322314
Cursor = crHandPoint
323315
Hint = 'More actions...'
324316
Margins.Left = 0
@@ -329,7 +321,6 @@ object DelphiCopilotChatView: TDelphiCopilotChatView
329321
Caption = '...'
330322
Flat = True
331323
PopupMenu = PopupMenu1
332-
ExplicitWidth = 23
333324
end
334325
end
335326
object ImageList1: TImageList

Src/Chat/DelphiCopilot.Chat.View.pas

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ TDelphiCopilotChatView = class(TDockableForm)
3939
SelectAll1: TMenuItem;
4040
pnBack: TPanel;
4141
pnBackQuestion: TPanel;
42-
pnBackBtnSend: TPanel;
43-
btnSend: TButton;
4442
mmQuestion: TMemo;
4543
N1: TMenuItem;
4644
mmReturn: TRichEdit;
@@ -59,6 +57,7 @@ TDelphiCopilotChatView = class(TDockableForm)
5957
btnInsertAtCursor: TSpeedButton;
6058
btnMoreActions: TSpeedButton;
6159
ShapeCommands: TShape;
60+
btnSend: TButton;
6261
procedure FormShow(Sender: TObject);
6362
procedure cBoxSizeFontKeyPress(Sender: TObject; var Key: Char);
6463
procedure Cut1Click(Sender: TObject);

0 commit comments

Comments
 (0)