Hello Raul,

This is very similar to what I am trying to do for my .NET Integration.

Basically, yours would "evaluate" a line entry and append the result to a 
"session" window. My project is more along the line of allowing you to define 
methods, load them into a real J session and quite possible execute the method.

In my case, and I assume similar to yours, the true J session (be it from EXE 
or the DLL shared library) is run at the background and a front-end system will 
handle the user inputs. 

So my plan of attack is to actually create a session from the J.EXE and show 
the J Session window. Using Win32 API, I would then move this window to a panel 
inside an MDI Form. Essentially making it look like that the J.EXE session is a 
part of the non-J application. This would allow me to use the full power of the 
existing OLE-SERVER JFE (J-Front End) with the syntax highlighting and other 
stuff.

On the event that I could not make this work, my backup plan is somewhat 
similar to what you describe. Which is maintain a RichTextBox or a TextBox and 
just append user inputs and results into it.

:) 

r/alex

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Miller, Raul D
Sent: Friday, April 21, 2006 2:52 PM
To: [email protected]
Subject: [Jprogramming] user session manager?

I want to build a J form which is essentially a session manager.

In other words, the user will type in a line of text.  The
line will be appended to the session.  An application function
will process the line.  The result will be appended to the
session.

Sessions can be large (hundreds of megabytes, worst case),
but usually only the tail end of the session is of interest.

Sessions will be logged to a file.

Advanced versions may color the text (input a different
color from ouput, for example).

How to implement?

One approach has a richeditm which represents the entire
session.  This incurs tremendous cost updating the session
when the session gets large.  I'm rejecting this as unworkable.

One approach has a richeditm which represents the visible
part of the session.  A scroll bar would allow navigation
within the session.  Arrow keys could not be used for
scrolling (no J event handler for them).  Mouse wheel could
not be used for scrolling (no J event handler for it).

Any better approaches?

Thanks,

-- 
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.4.4/320 - Release Date: 4/20/2006
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.4.4/320 - Release Date: 4/20/2006
 
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to