Autor Beitrag
Ecthelion
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 57



BeitragVerfasst: So 27.10.02 11:42 
Hi,

ich kenn mich mit der objektorientierten Oberfläche nun nicht so super aus, deswegen frag ich mich ob das überhaupt möglich ist. Ich hab es mal versucht, aber da kam ich gar nicht zum Klicken des Buttons, weil ja die Schleife noch lief und damit keine Eingabe möglich war. Wie mach ich das also?

Beispiel: WHILE-DO-Schleife, und entsprechend ein Button, der eine Boolean-Variable für Abbruchbedingung negiert.
aogwaba
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 109



BeitragVerfasst: So 27.10.02 12:34 
Hi!
schau mal in der OH unter: Application.ProcessMessages
da solltest du fündig werden.

cu
waba
DeCodeGuru
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1333
Erhaltene Danke: 1

Arch Linux
Eclipse
BeitragVerfasst: So 27.10.02 12:39 
Hi,

erstmal musst du dafür Application.ProcessMessages verwenden. Das bewirkt, dass du noch aufm Button Klicken kannst. Dann musst du einfach in deiner Schleife die Boolean-Variable abfragen und ggf. mit break die Schleife beenden.

_________________
Viele Grüße
Jakob
Ecthelion Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 57



BeitragVerfasst: So 27.10.02 13:28 
der zweite teil war mir schon klar, das mit den process-messages wusste ich nur nich ;)

danke :)
waldmeister
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 136

Win XP
D7 Enterp
BeitragVerfasst: So 27.10.02 17:58 
ich hab noch ne andere idee und würde gerne mal wissen, was ihr davon haltet.

Man kann doch in die schleife eine IF-Abfrage einbauen die prüft ob z.b. eine variable = 0 ist. wenn man auf den button klickt, kann die variable doch einfach auf 1 gesetzt werden und schon ist die schleife unterbrochen.
Die schleife würde zwar in gewisser weise weiterlaufen aber immer nur bist zur if-abfrage, danach wäre ende.

_________________
der wald....der meister....der meister des waldes....der waldmeister
aogwaba
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 109



BeitragVerfasst: So 27.10.02 18:46 
Hi!

Genau das meint ja DeCodeGuru. ;)

cu
waba
DeCodeGuru
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1333
Erhaltene Danke: 1

Arch Linux
Eclipse
BeitragVerfasst: So 27.10.02 19:00 
jo, das meinte ich :mrgreen:

_________________
Viele Grüße
Jakob
Ecthelion Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 57



BeitragVerfasst: So 27.10.02 19:26 
ähem... darum ging es ja von anfang an... es ist ja nicht so, dass ich nicht weiss, wie ich schleifen unterbreche... dummerweise kann man den button aber gar nicht klicken, wenn die schleife läuft.

des rätsels lösung ist daher nicht die verlinkung von zu prüfender variable (hatte ich im initial post schon), sondern diese application-dingens..
waldmeister
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 136

Win XP
D7 Enterp
BeitragVerfasst: So 27.10.02 19:42 
echt?? naja lesen will halt gelernt sein :oops:

_________________
der wald....der meister....der meister des waldes....der waldmeister