Registriert seit: 18. Aug 2004
Ort: Edewecht
712 Beiträge
Delphi 5 Professional
|
Re: Element '' hat kein übergeordnetes Fenster
3. Apr 2005, 20:00
Delphi-Quellcode:
unit pbIRCChatBox;
interface
uses
Windows, Messages, Classes, ComCtrls;
type
TpbIRCChatBox = class(TRichEdit)
protected
procedure WndProc( var Message: TMessage); override;
end;
procedure Register;
implementation
procedure Register;
begin
RegisterComponents(' pb', [TpbIRCChatBox]);
end;
{ TpbIRCChatBox }
procedure TpbIRCChatBox.WndProc( var Message: TMessage);
begin
if Message.Msg <> WM_PAINT then
if Assigned(Parent) then
HideCaret( Handle);
inherited WndProc( Message);
end;
end.
Ciao, Sprint.
"I don't know what I am doing, but I am sure I am having fun!"
|