Форум программистов
 

Восстановите пароль или Зарегистрируйтесь на форуме, о проблемах и с заказом рекламы пишите сюда - alarforum@yandex.ru, проверяйте папку спам!

Вернуться   Форум программистов > Delphi программирование > Общие вопросы Delphi
Регистрация

Восстановить пароль

Купить рекламу на форуме - 42 тыс руб за месяц

Ответ
 
Опции темы Поиск в этой теме
Старый 24.08.2011, 23:53   #31
Tuman777
Пользователь
 
Регистрация: 10.07.2011
Сообщений: 37
По умолчанию

Код:
procedure TForm4.Button1Click(Sender: TObject);
begin
Timer1.Enabled:=True;
Timer2.Enabled:=True;
Timer3.Enabled:=True;
Label1.Caption:='5';
end;
procedure TForm4.Timer1Timer(Sender: TObject);
begin
Label1.Caption:='4';
end;
procedure TForm4.Timer2Timer(Sender: TObject);
begin
Label1.Caption:='3';
end;
procedure TForm4.Timer3Timer(Sender: TObject);
begin
Timer1.Enabled:=False;
Timer2.Enabled:=False;
Timer3.Enabled:=False;
Label1.Caption:='2';
Form5.Label1.Caption:=Label1.Caption;
Form5.ShowModal;
Image1.Visible:=False;
Image2.Visible:=False;
Image3.Visible:=False;
Image4.Visible:=False;
Image5.Visible:=False;
Image6.Visible:=False;
Image7.Visible:=False;
Image8.Visible:=False;
Image9.Visible:=False;
Image10.Visible:=False;
Close;
end;
procedure TForm4.Image1Click(Sender: TObject);
begin
Timer1.Enabled:=False;
Timer2.Enabled:=False;
Timer3.Enabled:=False;
Label1.Caption:='2';
Form5.Label1.Caption:=Label1.Caption;
Form5.ShowModal;
Image1.Visible:=False;
Image2.Visible:=False;
Image3.Visible:=False;
Image4.Visible:=False;
Image5.Visible:=False;
Image6.Visible:=False;
Image7.Visible:=False;
Image8.Visible:=False;
Image9.Visible:=False;
Image10.Visible:=False;
Close;
end;
procedure TForm4.Image2Click(Sender: TObject);
begin
Timer1.Enabled:=False;
Timer2.Enabled:=False;
Timer3.Enabled:=False;
Label1.Caption:='2';
Form5.Label1.Caption:=Label1.Caption;
Form5.ShowModal;
Image1.Visible:=False;
Image2.Visible:=False;
Image3.Visible:=False;
Image4.Visible:=False;
Image5.Visible:=False;
Image6.Visible:=False;
Image7.Visible:=False;
Image8.Visible:=False;
Image9.Visible:=False;
Image10.Visible:=False;
Close;
end;
procedure TForm4.Image3Click(Sender: TObject);
begin
Timer1.Enabled:=False;
Timer2.Enabled:=False;
Timer3.Enabled:=False;
Label1.Caption:='2';
Form5.Label1.Caption:=Label1.Caption;
Form5.ShowModal;
Image1.Visible:=False;
Image2.Visible:=False;
Image3.Visible:=False;
Image4.Visible:=False;
Image5.Visible:=False;
Image6.Visible:=False;
Image7.Visible:=False;
Image8.Visible:=False;
Image9.Visible:=False;
Image10.Visible:=False;
Close;
end;
procedure TForm4.Image7Click(Sender: TObject);
begin
Timer1.Enabled:=False;
Timer2.Enabled:=False;
Timer3.Enabled:=False;
Form5.Label1.Caption:=Label1.Caption;
Form5.ShowModal;
Image1.Visible:=False;
Image2.Visible:=False;
Image3.Visible:=False;
Image4.Visible:=False;
Image5.Visible:=False;
Image6.Visible:=False;
Image7.Visible:=False;
Image8.Visible:=False;
Image9.Visible:=False;
Image10.Visible:=False;
Close;
end;
procedure TForm4.Image8Click(Sender: TObject);
begin
Timer1.Enabled:=False;
Timer2.Enabled:=False;
Timer3.Enabled:=False;
Label1.Caption:='2';
Form5.Label1.Caption:=Label1.Caption;
Form5.ShowModal;
Image1.Visible:=False;
Image2.Visible:=False;
Image3.Visible:=False;
Image4.Visible:=False;
Image5.Visible:=False;
Image6.Visible:=False;
Image7.Visible:=False;
Image8.Visible:=False;
Image9.Visible:=False;
Image10.Visible:=False;
Close;
end;
procedure TForm4.Image9Click(Sender: TObject);
begin
Timer1.Enabled:=False;
Timer2.Enabled:=False;
Timer3.Enabled:=False;
Label1.Caption:='2';
Form5.Label1.Caption:=Label1.Caption;
Form5.ShowModal;
Image1.Visible:=False;
Image2.Visible:=False;
Image3.Visible:=False;
Image4.Visible:=False;
Image5.Visible:=False;
Image6.Visible:=False;
Image7.Visible:=False;
Image8.Visible:=False;
Image9.Visible:=False;
Image10.Visible:=False;
Close;
end;
procedure TForm4.Image10Click(Sender: TObject);
begin
Timer1.Enabled:=False;
Timer2.Enabled:=False;
Timer3.Enabled:=False;
Label1.Caption:='2';
Form5.Label1.Caption:=Label1.Caption;
Form5.ShowModal;
Image1.Visible:=False;
Image2.Visible:=False;
Image3.Visible:=False;
Image4.Visible:=False;
Image5.Visible:=False;
Image6.Visible:=False;
Image7.Visible:=False;
Image8.Visible:=False;
Image9.Visible:=False;
Image10.Visible:=False;
Close;
end;
procedure TForm4.FormCreate(Sender: TObject);
begin
Form4.BorderIcons:=[];
end;
end.
вот скрин моей формы и код того что на ней происходит.
один огромный вопрос - как сделать чтобы имиджи менялись местами, я не могу понять
Изображения
Тип файла: jpg форма.jpg (251.6 Кб, 125 просмотров)
Tuman777 вне форума Ответить с цитированием
Старый 24.08.2011, 23:55   #32
Tuman777
Пользователь
 
Регистрация: 10.07.2011
Сообщений: 37
По умолчанию

имиджи не пустые, они заполняются картинками програмно
Tuman777 вне форума Ответить с цитированием
Ответ


Купить рекламу на форуме - 42 тыс руб за месяц



Похожие темы
Тема Автор Раздел Ответов Последнее сообщение
random/randomize Ya_Aston Помощь студентам 8 17.12.2010 19:49
Delphi Randomize tanek Помощь студентам 5 31.05.2010 20:52
Randomize )Игнат( Паскаль, Turbo Pascal, PascalABC.NET 13 03.02.2009 16:51
Функция Randomize MaXXX Общие вопросы Delphi 2 23.09.2008 11:42