Assuming you're running a turnkey app and you want to open the
SwiftForth console while your app in running, execute something like
this when your program launches:
: WINMAIN
CREATE-YOUR-APP-WINDOW ( this should create your app window )
I'M-TESTING? ( true = launch SF Console )
IF ['] INTERACTIVE 'STARTER ! DEVELOPMENT
ELSE ( standalone )
BEGIN ['] DISPATCHER CATCH 0=
UNTIL
'ONSYSEXIT CALLS ( Execute System Exit Chain )
0 ExitProcess
THEN ;
' WINMAIN 'MAIN !
I'M-TESTING? could interrogate the command tail.
Hope this helps,
Mike
-----Original Message-----
From: sftalk-bounce_at_forth.com [mailto:sftalk-bounce_at_forth.com] On Behalf
Of Roger Levy
Sent: Monday, July 28, 2008 7:40 AM
To: sftalk_at_forth.com
Subject: [sftalk] Responding to SwiftForth's Incoming Messages
Copied from original email I sent privately to Leon Wagner:
I had an idea a long time ago to try to execute the message pump for the
SwiftForth console window from an animated app loop (controlling a child
graphics window) such that it would make it appear that both windows
were
running concurrently. This would enable me to have all the functions of
SwiftForth's console available while an animated game program is
running,
eliminating the need for a built-in commandline, for testing purposes.
The message pump for the SF console (inside TTY.DLL) doesn't seem to be
exposed. Is this idea realistic, and, how could I implement it?
Synonyms for "message pump": Event loop, message dispatcher, message
loop
-Roger
----------------------------------------------------------------------
sftalk_at_forth.com The SwiftForth programming discussion email list
To unsubscribe, send subject "unsubscribe" to sftalk-request_at_forth.com
For list command help, send subject "help" to sftalk-request_at_forth.com
Message archives are located at http://www.forth.com/archive/sftalk
----------------------------------------------------------------------
This list is a forum for SwiftForth users. For product support and
bug reports, please send email to support_at_forth.com
----------------------------------------------------------------------
----------------------------------------------------------------------
sftalk_at_forth.com The SwiftForth programming discussion email list
To unsubscribe, send subject "unsubscribe" to sftalk-request_at_forth.com
For list command help, send subject "help" to sftalk-request_at_forth.com
Message archives are located at http://www.forth.com/archive/sftalk
----------------------------------------------------------------------
This list is a forum for SwiftForth users. For product support and
bug reports, please send email to support_at_forth.com
----------------------------------------------------------------------
Received on Mon Jul 28 2008 - 17:13:09 PDT
Subscribe to our e-mail list service. It's free for all SwiftForth and SwiftX users!
This archive was generated 09-Feb-2012. Archive updated nightly.