Autor Beitrag
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: So 05.10.03 11:49 
hallo !!!

die fensterklasse meines prgrammes ist immer TForm1 ! also der name des formular objektes. wie kann ich die fensterklasse meines proggis ändern ohne die forms umzubenennen ?

_________________
In the beginning was the word.
And the word was content-type: text/plain.
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: So 05.10.03 12:40 
Gar nicht.
Motzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2931

XP Prof, Vista Business
D6, D2k5-D2k7 je Prof
BeitragVerfasst: So 05.10.03 13:22 
Doch, du ersetzt einfach alle Vorkommnise von TForm1 durch deinen neuen Klassennamen, allerdings läufst du damit in Gefahr die IDE zu "verwirren"...

_________________
gringo pussy cats - eef i see you i will pull your tail out by eets roots!
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: So 05.10.03 13:24 
Ist doch das gleiche wie im OI das Formular umbennen. Oder sehe ich das falsch?
Motzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2931

XP Prof, Vista Business
D6, D2k5-D2k7 je Prof
BeitragVerfasst: So 05.10.03 14:32 
Nein, der Name der globalen Variable entspricht immer dem Namen der Form, und der Klassenname enspricht normalerweise immer dem Formnamen mit vorangestelltem "T" (das macht Delphi automatisch). Ich kann nun den Klassennamen selbstständig ändern, damit bleibt aber der Variablenname gleicht, so kann zb die Variable immer noch Form1 heißen, die Klasse heißt aber TMainForm... Ist aber wahrscheinlich in den wenigsten Fällen sinnvoll...

_________________
gringo pussy cats - eef i see you i will pull your tail out by eets roots!
matze Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Mo 06.10.03 14:51 
wie macht das winamp dann ?? den kann ich mit nem bestimmten parameter starten und dann hat der die window klasse die ich ihm in dem parameter sage...

_________________
In the beginning was the word.
And the word was content-type: text/plain.