> Subject: Delay setting Text Property
> To: "Delphi Discussion List" <[email protected]>
> Message-ID:
> <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="iso-8859-1"
>
> I want to change the Text property of a ComboBox inside
<<snip>>
> Is there anyway to fool Windows into sending a WM_SETTEXT
> message without waiting. Or do I have to muck about with
> a timer or send my own user message to get this to work?
>
> Thanks,
> Ross.
OnChange occurs at end of change
suspend OnChange event during your procedure like
procedure TForm1.ComboBox_OnChange(Sender : TObject)
var
ev : TNotifyEvent
begin
ev := ComboBox.OnChange;
ComboBox.OnChange := nil;
try
your code here
change Combo text and so on
finally
ComboBox.OnChange := ev;
end;
end;
_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi