Autor Beitrag
-Nala-
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 62



BeitragVerfasst: Di 06.03.07 19:42 
Hey leute ..

ich brauch mal wieder eure hilfe :D

also ...

ich möchte gerne wissen wie man eine ellipse , die in ein quadratisches image eingezeichnet wurde färben kann

ich habe versucht ein z.b. ganz rotes bild in ein image reinzuladen (mit doppelkliick auf das image) aber die ellipse blieb weiß

könnt ihr mir helfen ?????

THX
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Di 06.03.07 19:43 
Vor dem Zeichnen einfach Canvas.Brush.Color auf clRed stellen.

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
-Nala- Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 62



BeitragVerfasst: Di 06.03.07 19:47 
cool !!!

es funktioniert :D

wenn ich jetzt das ganze programm erst starten möchte wenn ich in ein input feld h2o geschrieben hab wie würde das gehen ????
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Di 06.03.07 19:50 
Neue Frage => Neuer Thread!
user profile icon-Nala- hat folgendes geschrieben:

wenn ich jetzt das ganze programm erst starten möchte wenn ich in ein input feld h2o geschrieben hab wie würde das gehen ????

Wenn das Programm nicht läuft, hast du auch kein Input-Feld. BTW: Meinst du damit ein Edit? :nixweiss: :gruebel:
Könntest du dein Problem mal präzisieren?

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
-Nala- Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 62



BeitragVerfasst: Di 06.03.07 19:52 
ja also

ich soll für die schule ein programm schreiben mit dem man ´zb h2o animiert sieht

also 3 kugeln treffen sich
eine davon hab ich rot gefärbt und jezt

will ich ein fenster haben mit ner zeile wo man was reinschreiben kann
und dann möchte ich das wenn ich h2o eingebe das programm startet
Robinator
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 275

WinXP
BDS 2006
BeitragVerfasst: Di 06.03.07 19:55 
user profile icon-Nala- hat folgendes geschrieben:
ja also

ich soll für die schule ein programm schreiben mit dem man ´zb h2o animiert sieht

also 3 kugeln treffen sich
eine davon hab ich rot gefärbt und jezt

will ich ein fenster haben mit ner zeile wo man was reinschreiben kann
und dann möchte ich das wenn ich h2o eingebe das programm startet


hä? :gruebel:

_________________
erare humanum est
-Nala- Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 62



BeitragVerfasst: Di 06.03.07 19:57 
...

was verstehst du nich ???
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Di 06.03.07 20:00 
"Wenn ich h20 reinschreibe, startet das Programm?"
Ist ja genauso, als wenn du einen Verstorbenen bittest, lebendig zu werden und er wird es. :gruebel:

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
-Nala- Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 62



BeitragVerfasst: Di 06.03.07 20:02 
:D

eigentlich

müsste dann nur der timer starten also irgendwie if 'H2O' input oder so then timer1.enabled und so weiter

ich weiß nur nich wie ich das machen soll
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Di 06.03.07 20:05 
Also es soll z.B. bei einem ButtonClick der Text im Edit überprüft werden und gegebenenfalls ein Timer aktiviert werden?

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
-Nala- Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 62



BeitragVerfasst: Di 06.03.07 20:07 
ganz genau ist das möglich ???
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Di 06.03.07 20:12 
Na klar.

Was fehlt dir denn an Wissen?

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
-Nala- Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 62



BeitragVerfasst: Di 06.03.07 20:14 
wie ich ein edit mache

und wie ich den button die schrift im edit überprüfen lasse

und eígentlich noch wie ich den timer starten lasse geht das mit enabled ???
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Di 06.03.07 20:16 
user profile icon-Nala- hat folgendes geschrieben:
wie ich ein edit mache

Einfach auf die Form ziehen. Müsste bei Standard seien. ;)
user profile icon-Nala- hat folgendes geschrieben:
und wie ich den button die schrift im edit überprüfen lasse

Du klickst doppelt auf den Button und fragst mittels einer if-Abfrage den Inhalt ab (ob Inhalt = 'h2O').
user profile icon-Nala- hat folgendes geschrieben:
und eígentlich noch wie ich den timer starten lasse geht das mit enabled ???

:zustimm:

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot


Zuletzt bearbeitet von Marco D. am Di 06.03.07 21:04, insgesamt 1-mal bearbeitet
-Nala- Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 62



BeitragVerfasst: Di 06.03.07 20:20 
jetzt hab ich noch ne frage :D

also

bei dem Schrift überprüfen

if (was muss ich da schreiben ???) then timer1.enabled.....
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Di 06.03.07 20:26 
user profile icon-Nala- hat folgendes geschrieben:
jetzt hab ich noch ne frage :D

also

bei dem Schrift überprüfen

if (was muss ich da schreiben ???) then timer1.enabled.....

Du scheinst nicht mal die Grundlagen draufzuhaben. Was macht ihr denn in der Schule? :roll:
ausblenden Delphi-Quelltext
1:
2:
if (Edit1.Text = 'h20') then
    Timer1.Enabled := true;

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
-Nala- Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 62



BeitragVerfasst: Di 06.03.07 20:27 
ich nehms zurück es klappt :D

THX
JayEff
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2971

Windows Vista Ultimate
D7 Enterprise
BeitragVerfasst: Di 06.03.07 21:03 
user profile iconMarco D. hat folgendes geschrieben:
[...] if-Schleife [...]

:autsch: :motz: www.if-schleife.de :mahn:

_________________
>+++[>+++[>++++++++<-]<-]<++++[>++++[>>>+++++++<<<-]<-]<<++
[>++[>++[>>++++<<-]<-]<-]>>>>>++++++++++++++++++.+++++++.>++.-.<<.>>--.<+++++..<+.
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Di 06.03.07 21:05 
user profile iconJayEff hat folgendes geschrieben:
user profile iconMarco D. hat folgendes geschrieben:
[...] if-Schleife [...]

:autsch: :motz: www.if-schleife.de :mahn:

:rofl: :mrgreen:
Ja war mir durchaus bewusst :!: Hab nur irgendwie grad nicht dran gedacht :eyecrazy:

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot