1. multiple windows

------=_NextPart_000_0009_01C020CA.EA876BC0
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

    I created a function that can be called that creates a TimerWindow =
that simply
counts up about every half second. This window will function completely =
separately
(or so it seems) from the original, it even has it's own message-loop in =
the function.
    Without the message-loop, the timer-window will disappear when I =
exit the first,
but with the message-loop, it continues to function normally. I thought =
(there I go
again) that Euphoria could not create additional threads or processes.
   Does anyone know what this is analogous to?

Jason


------=_NextPart_000_0009_01C020CA.EA876BC0
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; I created a function =
that can be=20
called that creates a TimerWindow that simply</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>counts up about every half second. This =
window will=20
function completely separately</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>(or so it seems) from the original, it =
even has=20
it's own message-loop in the function.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; Without the =
message-loop, the=20
timer-window will disappear when I exit the first,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>but with the message-loop, it continues =
to function=20
normally. I thought (there I go</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>again) that Euphoria could not create =
additional=20
threads or processes.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp;Does anyone know what =
this is=20
analogous to?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Jason</FONT></DIV>

------=_NextPart_000_0009_01C020CA.EA876BC0--

new topic     » topic index » view message » categorize

2. Re: multiple windows

You're really not creating a new thread, just a nested loop.  It would be
the same as if you had a while loop within a while loop.  Calling exit in
the inner loop would only return you to the outer.  Even though it seems
like you've got 'separate' event loops for different windows, you don't.  A
message loop (often referred to as an event loop) in windows simply
processes the messages sent to any of your app's windows.  I've played
around with this a bit, to emulate dialog windows--the real thing seems
somewhat difficult to get anything useful out of.

Matt Lewis

-----Original Message-----
From: Jason Mirwald

    I created a function that can be called that creates a TimerWindow that
simply
counts up about every half second. This window will function completely
separately
(or so it seems) from the original, it even has it's own message-loop in the
function.
    Without the message-loop, the timer-window will disappear when I exit
the first,
but with the message-loop, it continues to function normally. I thought
(there I go
again) that Euphoria could not create additional threads or processes.
   Does anyone know what this is analogous to?

Jason

new topic     » goto parent     » topic index » view message » categorize

3. Re: multiple windows

------=_NextPart_000_003D_01C02209.4FB536A0
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Matt,

Thank you. I went back and used a print routine in each message-loop and =
got
exactly the results you said I would. I guess it was a little confusing =
to think that
the first window could recieve/process messages in a loop in an include =
file, using
only local variables for the address...

Thanks again,
Jason


------=_NextPart_000_003D_01C02209.4FB536A0
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4134.600" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Matt,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thank you. I went back and used a print =
routine in=20
each message-loop and got</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>exactly the results you said I would. I =
guess it=20
was a little confusing to think that</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>the first window could recieve/process =
messages in=20
a loop in an include&nbsp;file, using</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>only local variables for the=20
address...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks again,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Jason</FONT></DIV>

------=_NextPart_000_003D_01C02209.4FB536A0--

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu