Skip to content

Commit 087e6d5

Browse files
committed
List and Combo Boxes Commit
Some free list and comboboxes in Torry.Net have been added
1 parent 2249992 commit 087e6d5

File tree

274 files changed

+14645
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

274 files changed

+14645
-0
lines changed
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
{************************************************************}
2+
{ }
3+
{ TDBComboBoxPlus & TComboBoxPlus Component }
4+
{ Registration Module }
5+
{ Copyright (c) 1995,1996,1997,1998 Out & About Production }
6+
{Portions Copyright (c) 1995,96,97,98 Inprise International }
7+
{ }
8+
{ Version 4.00 }
9+
{ }
10+
{************************************************************}
11+
12+
unit Cbplus;
13+
14+
interface
15+
16+
uses Classes, DsgnIntf, Dialogs;
17+
18+
{$IFDEF Win32}
19+
{$R Cbplus32.DCR}
20+
{$ELSE}
21+
{$R Cbplus16.DCR}
22+
{$ENDIF}
23+
24+
25+
procedure Register;
26+
27+
implementation
28+
29+
uses DBLup1a, DBLup1b, Cellsdlg, forms, sysUtils;
30+
31+
Type
32+
TDropDownGridEditor = Class(TComponentEditor)
33+
procedure Edit; override;
34+
procedure ExecuteVerb(Index: Integer); override;
35+
function GetVerb(Index: Integer): string; override;
36+
function GetVerbCount: Integer; override;
37+
procedure ShowDropDownGridEditor;
38+
end;
39+
40+
procedure TDropDownGridEditor.ShowDropDownGridEditor;
41+
begin
42+
with TCellsForm.Create(Application) do
43+
try
44+
DlgDesigner := Self.Designer;
45+
DlgComponent := TComboBoxPlus(Self.Component);
46+
ShowModal;
47+
finally
48+
Free;
49+
end;
50+
end;
51+
52+
procedure TDropDownGridEditor.Edit;
53+
begin
54+
ShowDropDownGridEditor;
55+
end;
56+
57+
procedure TDropDownGridEditor.ExecuteVerb(Index: Integer);
58+
begin
59+
Case Index of
60+
0: ShowDropDownGridEditor;
61+
1: MessageDlg('TComboBoxPlus && TDBComboBoxPlus'
62+
+#10#13+ '(c) 95, 96, 97, 98 Out && About Productions'
63+
+#10#13+ 'support@o2a.com'
64+
+#10#13+ 'sales@o2a.com'
65+
+#10#13+ 'Fax 619.618.1904' ,mtInformation,[mbOK],0);
66+
67+
end;
68+
end;
69+
70+
function TDropDownGridEditor.GetVerb(Index: Integer): string;
71+
begin
72+
Case Index of
73+
0: Result := 'Designer ...';
74+
1: Result := 'Component Info';
75+
end;
76+
end;
77+
78+
function TDropDownGridEditor.GetVerbCount: Integer;
79+
begin
80+
Result := 2;
81+
end;
82+
83+
procedure Register;
84+
begin
85+
RegisterComponents('Data Controls', [TDBComboBoxPlus]);
86+
RegisterComponents('Standard', [TComboBoxPlus]);
87+
RegisterComponentEditor(TComboBoxPlus, TDropDownGridEditor);
88+
RegisterComponentEditor(TDBComboBoxPlus, TDropDownGridEditor);
89+
end;
90+
91+
end.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)