Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Основная";
Текущий архив: 2004.04.04;
Скачать: [xml.tar.bz2];

Вниз

Как сделать мигающтй текст   Найти похожие ветки 

 
Berezne   (2004-03-12 09:43) [0]

Нужно забацать предупреждение об удалении записи в БД. И в форме, которая будет виводить текст етого предупредительного сообщения оно должно мигать.

Спасиба всем за ответи.


 
Vlad ©   (2004-03-12 09:47) [1]


> Berezne   (12.03.04 09:43)  

Есть компонент TTimer.
У текста (TLabel например) есть свойство Visible


 
ЫЗШКШЕ   (2004-03-12 09:47) [2]

Удалено модератором


 
Vlad ©   (2004-03-12 09:49) [3]


> ЫЗШКШЕ   (12.03.04 09:47) [2]

А если так, то можно и без мата.
label1.visible:=not label1.visible;


 
ЫЗШКШЕ   (2004-03-12 09:52) [4]


> Vlad ©   (12.03.04 09:49) [3]

и без романтики ...


 
Rem ©   (2004-03-12 10:02) [5]

type
 TSplashLabel = class(TLabel)
 private
   m_Timer: TTimer;
   procedure DoOnTimer(Sender: TObject);
   procedure SetInterval(a_iInterval: integer);
   function GetInterval: integer;
   procedure SetActive(a_bActive: boolean);
   function GetActive: boolean;
 public
   constructor Create(a_Owner: TComponent); override;
 published  
   property Interval: integer read GetInterval write SetInterval;
   property Active: boolean read GetActive write SetActive;
 end;

implementation

constructor TSplashLabel.Create(a_Owner: TComponent);
begin
 inherited Create(a_Owner);
 m_Timer := TTimer.Create(Self);
 m_Timer.OnTimer := DoOnTimer;
end;

procedure TSplashLabel.SetInterval(a_iInterval: integer);
begin
 m_Timer.Interval := a_iInterval;
end;

function TSplashLabel.GetInterval: integer;
begin
 Result := m_Timer.Interval;
end;

procedure TSplashLabel.SetActive(a_bActive: boolean);
begin
 m_Timer.Enabled := a_bActive;
end;

function TSplashLabel.GetActive: boolean;
begin
 Result := m_Timer.Enabled;
end;

procedure TSplashLabel.DoOnTimer(Sender: TObject);
begin
 Visible := not Visible;
end;


:)



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

Форум: "Основная";
Текущий архив: 2004.04.04;
Скачать: [xml.tar.bz2];

Наверх




Память: 0.45 MB
Время: 0.047 c
3-1078388326
Olegka
2004-03-04 11:18
2004.04.04
Calculated Fields


14-1078702896
Johnmen
2004-03-08 02:41
2004.04.04
Физика, как она есть....


6-1074755871
zeher avgur
2004-01-22 10:17
2004.04.04
Ошибка при использовании Powersock


3-1078470164
bushmen
2004-03-05 10:02
2004.04.04
ADOStoredProc


6-1074683336
Winnet
2004-01-21 14:08
2004.04.04
Где найти документацию по TcpClient и TcpServer





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 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
Английский Французский Немецкий Итальянский Португальский Русский Испанский