Вниз
Скачать: CL | DM;

OnPaint   Найти похожие ветки 

← →
webpauk   (2006-06-01 16:27) [0]

procedure TLabelEx.Paint;
begin
 with Canvas do
 begin
   if (fTimerEnabled) then
   begin
     Font.Color:=clRed;
     TextOut(Left, Top, Copy(Text, 1, fCurrentPosition));
   end
   else inherited;
 end;
end;


тупею а глазах. fTimerEnabled=True - ничего не рисуется вообще


← →
Kolan ©   (2006-06-01 16:30) [1]


> Left, Top

Где заданы?


← →
webpauk   (2006-06-01 16:31) [2]

unit LabelEx;

interface

uses
 Windows, Messages, SysUtils, Classes, Controls, StdCtrls, ExtCtrls, Dialogs, Graphics;

type
 TLabelEx = class(TLabel)
 private
   fTimerEnabled: Boolean;
   fTimer: TTimer;
   fCurrentPosition: Integer;

   procedure SetTimerEnabled(const Value: Boolean);
   procedure TimerTimer(Sender: TObject);
 protected
   procedure Paint; override;
 public
   constructor Create(AOwner: TComponent); override;
   destructor Destroy; override;
 published
   property TimerEnabled: Boolean read fTimerEnabled write SetTimerEnabled;
 end;


← →
Джо ©   (2006-06-01 16:32) [3]

Вместо Left,Top 0,0 поставь...


← →
webpauk   (2006-06-01 16:32) [4]


> Kolan ©   (01.06.06 16:30) [1]

упс...
спасибо



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.036 c
6-1135885674
ZeFiR
2005-12-29 22:47
2006.06.18
WAP-браузер


2-1149200694
[stalker]
2006-06-02 02:24
2006.06.18
Проблемма с динамическим массивом


2-1149086654
Pascal-men
2006-05-31 18:44
2006.06.18
Простите что не в тему!


2-1149096426
ZV
2006-05-31 21:27
2006.06.18
FileStream


15-1148265236
artiasd
2006-05-22 06:33
2006.06.18
Проблема с запуском Delphi7




   Наверх