Home
Top.Mail.Ru Yandeks.Metrika
Forum: "Main";
Current archive: 2002.01.08;
Download: [xml.tar.bz2];

Down

How to make a Canvas drawn when any window passes with a window Find similar branches


dimonf   (2001-12-16 17:23) [0]

People, how to create one that my data that I put on the Canvas did not disappear during the blunt monipulations with the window?
And how can I make a keystroke operation if I create software TPanel?

type
TPreview = class (TPanel)
private
property Canvas;
protected
public
constructor Create (AOwner: TComponent); override;
end;

{TPreview}

constructor TPreview.Create (AOwner: TComponent);
begin
Inherited Create (AOwner);
Parent: = AOwner as TWinControl;
BevelInner: = bvNone;
BevelOuter: = bvNone;
Color: = clWhite;
BorderStyle: = bsNone;
end;

procedure TForm1.FormPaint (Sender: TObject);
var R: TRect;
begin
with MyPrev do
begin
Canvas.Pen.Width: = 1;
Canvas.Brush.Style: = bsSolid;
Canvas.Font.Size: = 18;
R: = Rect (10,10,100,100);
Canvas.Rectangle (R.Left-1, R.Top-1, R.Right + 1, R.Bottom + 1);
Canvas.TextRect (R, 0,0, "Demos");
end;
end;

procedure TForm1.FormCreate (Sender: TObject);
var R: TRect;
begin
MyPrev: = TPreview.Create (Self);
MyPrev.Height: = Form1.Height * 2;
Panel1.Height: = Form1.Height * 2;
with MyPrev do
begin
Canvas.Pen.Width: = 1;
Canvas.Brush.Style: = bsSolid;
Canvas.Font.Size: = 18;
end;
end;

end;



dimonf   (2001-12-16 18:09) [1]

People, no thoughts ???



Pages: 1 whole branch

Forum: "Main";
Current archive: 2002.01.08;
Download: [xml.tar.bz2];

Top





Memory: 0.54 MB
Time: 0.033 c
6-22313
SB
2001-10-01 15:05
2002.01.08
Help network dropout! Please do


3-21923
Bowler
2001-11-30 02:16
2002.01.08
An abstract question about optimization.


14-22378
moderator
2001-11-08 07:51
2002.01.08
> Merilin


1-22050
Russian
2001-12-18 17:03
2002.01.08
WELL VERY INTERESTING QUESTION :))))


14-22350
Hedgehog
2001-11-04 16:49
2002.01.08
I sit here, and nothing to do!





afrikaans albanian Arabic armenian azerbaijani basque belarusian bulgarian catalan Chinese (Simplified) Chinese (Traditional) croatian Czech danish Dutch English estonian filipino finnish French
galician georgian German greek haitian Creole hebrew Hindi hungarian icelandic Indonesian Irish italian Japanese Korean latvian lithuanian macedonian malay maltese norwegian
persian polish portuguese Romanian russian serbian slovak Slovenian Spanish swahili Swedish ภาษาไทย turkish Ukrainian urdu Tiếng Việt welsh yiddish bengali bosnian
cebuano Esperanto gujarati hausa hmong igbo javanese kannada Khmer lao latin maori marathi mongolian nepali punjabi somali tamil telugu yoruba
zulu
English French German Italian Portuguese Russian Spanish