AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

9 picture problem

Offene Frage von "dangerduck"
Ein Thema von dangerduck · begonnen am 28. Mär 2009 · letzter Beitrag vom 29. Mär 2009
Antwort Antwort
Seite 1 von 2  1 2      
dangerduck

Registriert seit: 14. Dez 2008
39 Beiträge
 
#1

9 picture problem

  Alt 28. Mär 2009, 19:05
Servus!
It's me again

I have 9 pictures like that :

http://www.shrani.si/f/V/uu/VEOwEh/slika1.png

and i want that one of 9 picture wil show randomly

like that:

http://www.shrani.si/f/34/l0/3HpdGM9d/slika-2.png

the image can be showed for 2000 msec and when disaper must add point and go to star of the loop =)


Please help me =)
Miniaturansicht angehängter Grafiken
slika1_176.png  
Please just click it it wont cost you anything
http://s1.bitefight.si/c.php?uid=18237
  Mit Zitat antworten Zitat
Noedel

Registriert seit: 7. Aug 2008
204 Beiträge
 
Delphi 7 Professional
 
#2

Re: 9 picture problem

  Alt 28. Mär 2009, 19:18
and what´s the problem?

1)get a random digit from 1 to 9
2)show the belonging image
3)Take a timer with an interval of 2sec
4)After 2 sec the timer will hide the image
5)the user has to click on the space, where the image was

Did i understand that correctly?
-"Was studierst du eigentlich? Nerdologie?"
-"Informatik..."
-"Wusst ich´s doch!"
  Mit Zitat antworten Zitat
dangerduck

Registriert seit: 14. Dez 2008
39 Beiträge
 
#3

Re: 9 picture problem

  Alt 28. Mär 2009, 19:24
i know how to create random digit
but i must show picture and i dont know how to combine that 2 things other things i know but i will better use wait() then ttimer
Please just click it it wont cost you anything
http://s1.bitefight.si/c.php?uid=18237
  Mit Zitat antworten Zitat
dangerduck

Registriert seit: 14. Dez 2008
39 Beiträge
 
#4

Re: 9 picture problem

  Alt 28. Mär 2009, 19:29
sory for double post but i try like that
i gave image picture like that
Skica1
Skica2 ......
then i write code like that

Delphi-Quellcode:
procedure TForm17.Timer1Timer(Sender: TObject);
type
skica=timage;
begin
skica+random(9).show=true
end;
But it wont work
Please just click it it wont cost you anything
http://s1.bitefight.si/c.php?uid=18237
  Mit Zitat antworten Zitat
Klaus01

Registriert seit: 30. Nov 2005
Ort: München
5.754 Beiträge
 
Delphi 10.4 Sydney
 
#5

Re: 9 picture problem

  Alt 28. Mär 2009, 20:01
Zitat von dangerduck:
Delphi-Quellcode:
procedure TForm17.Timer1Timer(Sender: TObject);
type
  skica=timage;
begin
  TImage(FindComponent(skica+IntToStr(random(9)))).show=true
end;
Klaus
  Mit Zitat antworten Zitat
dangerduck

Registriert seit: 14. Dez 2008
39 Beiträge
 
#6

Re: 9 picture problem

  Alt 28. Mär 2009, 20:06
Zitat von Klaus01:
Delphi-Quellcode:
procedure TForm17.Timer1Timer(Sender: TObject);
type
  skica=timage;
begin
  TImage(FindComponent(skica+IntToStr(random(9)))).show=true
end;
thx 10000x there is no error's more just
[DCC Error] Unit17.pas(46): E2010 Incompatible types: 'string' and 'Class reference'
Please just click it it wont cost you anything
http://s1.bitefight.si/c.php?uid=18237
  Mit Zitat antworten Zitat
Flips

Registriert seit: 17. Feb 2005
Ort: Sankt Wendel
491 Beiträge
 
Delphi 7 Professional
 
#7

Re: 9 picture problem

  Alt 28. Mär 2009, 20:32
Delphi-Quellcode:
procedure TForm17.Timer1Timer(Sender: TObject);
begin
  TImage(FindComponent('skica'+IntToStr(random(9)))).show=true
end;
Philipp F.
  Mit Zitat antworten Zitat
dangerduck

Registriert seit: 14. Dez 2008
39 Beiträge
 
#8

Re: 9 picture problem

  Alt 28. Mär 2009, 20:36
Zitat von Flips:
Delphi-Quellcode:
procedure TForm17.Timer1Timer(Sender: TObject);
begin
  TImage(FindComponent('skica'+IntToStr(random(9)))).show=true
end;
[DCC Error] Unit17.pas(44): E2064 Left side cannot be assigned to
[DCC Error] Unit17.pas(45): E2014 Statement expected, but expression of type 'Boolean' found
[DCC Fatal Error] Project16.dpr(5): F2063 Could not compile used unit 'Unit17.pas'
Please just click it it wont cost you anything
http://s1.bitefight.si/c.php?uid=18237
  Mit Zitat antworten Zitat
Klaus01

Registriert seit: 30. Nov 2005
Ort: München
5.754 Beiträge
 
Delphi 10.4 Sydney
 
#9

Re: 9 picture problem

  Alt 28. Mär 2009, 20:39
Delphi-Quellcode:
procedure TForm17.Timer1Timer(Sender: TObject);
begin
  TImage(FindComponent('skica'+IntToStr(random(9)))).show;
end;
.. is it to late for you?

Klaus
Klaus
  Mit Zitat antworten Zitat
dangerduck

Registriert seit: 14. Dez 2008
39 Beiträge
 
#10

Re: 9 picture problem

  Alt 28. Mär 2009, 20:45
same withotu :
is
[DCC Error] Unit17.pas(44): E2029 ':=' expected but '=' found
with:
is
[DCC Error] Unit17.pas(44): E2064 Left side cannot be assigned to
[DCC Error] Unit17.pas(45): E2014 Statement expected, but expression of type 'Boolean' found
Please just click it it wont cost you anything
http://s1.bitefight.si/c.php?uid=18237
  Mit Zitat antworten Zitat
Antwort Antwort
Seite 1 von 2  1 2      


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 22:58 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz