 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Guest
|
Posted: Fri Mar 02, 2007 11:45 pm Post subject: StringGrid & parented ComboBox - OnExit event doesn't fire |
|
|
Hi all!
I've created a StringGrid with a parented ComboBox but the OnExit
event won't fire...wonder why? Someone knows the soultion? Thanks, in
advance!
Vanyo
procedure TForm1.FormCreate(Sender: TObject);
begin
ComboBox1 := TComboBox.CreateParented(StringGrid1.Handle);
ComboBox1.OnExit := ComboBox1Exit;
ComboBox1.Style := csDropDownList;
end;
....
procedure TForm1.ComboBox1Exit(Sender: TObject);
begin
with Sender as TCombobox do
begin
Hide;
if Itemindex >= 0 then with StringGrid1 do Cells[Col, Row] :=
Items[ItemIndex];
end;
end; |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|