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.55 MB
Time: 0.033 c
1-22009
oomneeq
2001-12-14 21:26
2002.01.08
Circular class reference


1-22142
Beginner
2001-12-20 10:42
2002.01.08
ReplaceDialog


14-22364
Merlin
2001-11-06 00:22
2002.01.08
If you do not save, then it will be gone!


7-22449
Schummi
2001-09-15 07:45
2002.01.08
Windows Favorites


4-22512
Yaroslav
2001-10-31 13:17
2002.01.08
How to create a popup menu on the API





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 Español swahili Swedish thai turkish Ukrainian urdu vietnamese 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