Wanted
2007-06-15 14:50:23
Does anyone know how to make a combo box read only I know you can for edits , but I'm not sure how to make a combo box read only, some one know?
2007-06-15 14:50:23
2007-06-15 14:56:41
2007-06-15 15:25:30
2007-06-15 15:26:55
2007-06-15 15:33:49
2007-06-15 15:43:58
2007-06-15 15:47:55
2007-06-15 15:50:56
From: Icefire908
Lol, I just tried that.
It loads the setting but you can't change the box at ALL. :(
2007-06-15 15:53:12
2007-06-15 16:13:02
.Style:= csOwnerDrawFixed;Tadah.
2007-06-15 16:18:21
2007-06-15 16:26:45
2007-06-15 16:37:49
2007-06-15 16:52:04
From: Spky
Tadah..Style:= csOwnerDrawFixed;
2007-06-15 16:56:21
From: Spky
Tadah..Style:= csOwnerDrawFixed;
2007-06-15 16:58:44
2007-06-15 17:03:20
From: Starblaster100
[php]combobox.style := csDropDownList;[/php]
I think
2007-06-15 17:20:47
2007-06-15 17:27:19
TheComboBox.Text := Players[No].String2;2007-06-15 18:46:44
program New;
var
MainForm : TForm;
ComboBox : TCOMBOBOX;
procedure OnKeyPress(Sender: TObject; var Key: Char);
begin
Key := Chr(VK_CANCEL);
end;
procedure InitForm;
var
i : integer;
begin
MainForm := CreateForm;
MainForm.SetBounds(0, 0, 500, 400);
MainForm.POSITION:= poDesktopCenter;
MainForm.BORDERICONS:= [biMinimize, biSystemMenu];
MainForm.BORDERSTYLE:= bsSingle;
MainForm.Caption := 'SCAR Function Maker';
ComboBox := TCOMBOBOX.Create(MainForm);
ComboBox.Parent := MainForm;
ComboBox.SetBounds(100, 100, 100, 20);
for i := 1 to 5 do
ComboBox.Items.Add('Example' + inttostr(i));
ComboBox.Seltext := 'Example1';
ComboBox.OnKeyPress := @OnKeyPress;
MainForm.ShowModal;
end;
procedure SafeInitForm;
var
v: TVariantArray;
begin
setarraylength(V, 0);
ThreadSafeCall('InitForm', v);
end;
begin
try
SafeInitForm;
finally
FreeForm(MainForm)
except
Writeln('ERROR: With Loading');
end;
end.
2007-06-15 20:05:17