Autor Beitrag
maximus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 896

Win XP, Suse 8.1
Delphi 4/7/8 alles prof
BeitragVerfasst: Mo 10.11.03 12:44 
übrigens: dein Fonteinstellung.Style gelöt lässt einen die haare zu berge stehen. Wer es einfach haben will macht es so:

ausblenden Delphi-Quelltext
1:
i := integer(Fonteinstellung.Style);					


:wink:

_________________
mfg.
mâximôv
kad_we Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 78


D6; Turbo Delphi 2006
BeitragVerfasst: Mo 10.11.03 14:08 
@maximus: 1. warum hättest du mir das nicht früher sagen können?

2. gestern war es ziemlich spät, als ich das gemacht hab... :eyecrazy:

was solls...danke

achja wofür ist denn meine sig so, wie sie ist???;)
maximus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 896

Win XP, Suse 8.1
Delphi 4/7/8 alles prof
BeitragVerfasst: Mo 10.11.03 14:29 
Jaja...deine sig hab ich übersehen :lol:

Evtl. macht es sinn, nicht das ganze form durch die saveCompoToStream function zu jagen, sondern nur die relevante sub-compo wie zB. ein panel, wo dann deine chat controls drauf sind :wink:

_________________
mfg.
mâximôv
kad_we Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 78


D6; Turbo Delphi 2006
BeitragVerfasst: Mo 10.11.03 15:20 
:?!?: :?!?: :?!?: :?!?: :?!?: :?!?: :?!?: :?!?: :?!?: :?!?: :?!?: :?!?: :?!?: :?!?: :?!?: :?!?: :?!?: :?!?: ich hab den source eh net verstanden, aber wenn du meinst, wird das schon richtig sein...
maximus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 896

Win XP, Suse 8.1
Delphi 4/7/8 alles prof
BeitragVerfasst: Mo 10.11.03 16:10 
Naja, eingentlich musst du nur wissen, was die functionen machen..

ausblenden Delphi-Quelltext
1:
2:
function SaveCompoToStream(aCompo : TComponent; aStream: TSTream; asBinary: Boolean = false): boolean; 
function LoadCompoFromStream(aCompo : TComponent; aStream: TSTream; asBinary: Boolean = false): boolean;


Du weisst doch was DFMs (DelphiForM) sind! Mit der 'SaveCompoToStream' funktion schreibst du alle DFM-daten der übergebenen komponente, mit allen unterkomponenten, in den übergebenen stream (kann auch ein internetStream sein)! Das beispiel sollte das verdeutlichen.

Mit der funktion 'LoadCompoFromStream' kannst du auf der anderen seite aus dem stream wieder eine 'echte' komponeten, mit all den sub-komponenten, machen:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
// stream ist fertig übertragen!!!
theStream.position := 0; // auf anfang setzen!
self.destroyComponents; // weil sie gleich alle wieder instanziert werden.
if not LoadCompoFromStream(self {Form1} , theStream) then showMessage('Loading failed');


Wenn du das nicht peilst, dann frag ruhig :wink: ...hoffe du kommst mit streams klar, wenn nicht solltest du erstmal bisschen mit fileStreams rumspielen und dann testhalber mal in files speichern und laden :wink:

_________________
mfg.
mâximôv
Udontknow
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2596

Win7
D2006 WIN32, .NET (C#)
BeitragVerfasst: Mo 10.11.03 16:42 
Halten wir doch einfach mal fest, daß es absolut gar keinen Sinn macht, Daten von Komponenten über die Leitung zu jagen, wenn das Ziel nur jenes ist, einen Chat mit ein paar Formatbefehlen hinzukriegen. Man schiesst nicht mit Kanonen auf Spatzen.

Cu, :)
Udontknow
maximus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 896

Win XP, Suse 8.1
Delphi 4/7/8 alles prof
BeitragVerfasst: Mo 10.11.03 16:51 
Da haste schon recht...obwohl das schon spass macht *holt.seine.FLAG.raus.und.feuert.auf.spatzen*...Aber er hat danach gefragt, dann soll ers auch haben :wink:

_________________
mfg.
mâximôv
kad_we Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 78


D6; Turbo Delphi 2006
BeitragVerfasst: Mo 10.11.03 18:39 
hab zwar noch nie mit streams gearbeitet, aber auch ein noob ist lernfähig...was solls auf jeden fall ist der Chat eigentlich nur ein Test, denn ich muss für die Schule noch nen Überwachungsprog schreiben, das den Internetkonsum der Schüler mitloggt und mit einigen anderen Features ;) ...oooops der PC meiner sich nicht mit Computern auskennende Erzfeindin ist abgestürzt, oder spamt sie mit showmessages voll 8)
kad_we Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 78


D6; Turbo Delphi 2006
BeitragVerfasst: Mo 10.11.03 18:41 
achja @maximus, woher willst du wissen, dass ich kein Mädl bin???
maximus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 896

Win XP, Suse 8.1
Delphi 4/7/8 alles prof
BeitragVerfasst: Mi 12.11.03 12:53 
kad_we hat folgendes geschrieben:
achja @maximus, woher willst du wissen, dass ich kein Mädl bin???


Die wahrscheinlichkeit ist relativ gering :oops: Dann bist du halt'n mädl...soll mir recht sein 8) Gibt sowieso viel zu wenige frauen die programmieren können/wollen.

Also lass es krachen :wink:

cu,
maximov.

_________________
mfg.
mâximôv
kad_we Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 78


D6; Turbo Delphi 2006
BeitragVerfasst: Mi 12.11.03 18:13 
ich hab nie gesagt, dass ich eins bin nur angedeutet, dass die möglichkeit bestehen könnte :P
könnt ihr mir auch gleich noch sagen, wie ich die tastenkombination
Alt + F4 ausschalten kann???
kad_we Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 78


D6; Turbo Delphi 2006
BeitragVerfasst: Mi 12.11.03 18:14 
achso, dass es viel zu wenig mädchen gibt, die programmieren, seh ich genauso
maximus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 896

Win XP, Suse 8.1
Delphi 4/7/8 alles prof
BeitragVerfasst: Do 13.11.03 01:09 
Du hast damit angefangen, jetzt musste auch die hosen runter lassen :mrgreen: ...wer A sagt muss auch B sagen :wink:

@Alt+F4: KA!...warum? ist doch standard.

_________________
mfg.
mâximôv
kad_we Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 78


D6; Turbo Delphi 2006
BeitragVerfasst: Do 13.11.03 09:45 
hmmm na gut *knopf auf* zzzzzzt whosch ... siehste, bin doch nen Kerl, aber das hätte ich dir gleich sagen können, wenn du nur gefragt hättest...
maximus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 896

Win XP, Suse 8.1
Delphi 4/7/8 alles prof
BeitragVerfasst: Do 13.11.03 10:13 
Na siehste...der erste eindruck täuscht nie *g*

_________________
mfg.
mâximôv
kad_we Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 78


D6; Turbo Delphi 2006
BeitragVerfasst: Do 13.11.03 10:54 
tja kannst du mir nun sagen, wie es klappt, dass wenn man ALT + F4 drückt, nichts passiert...
maximus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 896

Win XP, Suse 8.1
Delphi 4/7/8 alles prof
BeitragVerfasst: Do 13.11.03 11:07 
Nö...sagte ich doch: KA = keine ahnung :wink:

_________________
mfg.
mâximôv
kad_we Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 78


D6; Turbo Delphi 2006
BeitragVerfasst: Do 13.11.03 11:10 
heul, na gut, dann werd ich nochmal nen neues Thema aufmachen...

trotzdem danke