A Nudge?

Topics: User Forum
Aug 25, 2006 at 5:39 PM
Hello Mike,

First of all, I want to say how much I appreciate you making this library available.

Can you post some quick code for displaying the 3270 stream in a RichTextBox (or any other GUI control). I'd be interested how you display fields and text color.

Thank you in advance with any assistance on this.

~ J
Coordinator
Aug 29, 2006 at 6:40 PM
Hi,

Glad you like the library, I think it would be pretty simple to display things for a GUI although I don't have any code to hand. If you can wait a couple of weeks I should be able to knock something up, but I'm pretty busy at the moment so it won't be immediate,

regards,

Mike
Aug 31, 2006 at 4:07 PM
Thank you Mike.

I am making some headway but have a question.

I have connected to a core system that send multi-colored text back to the screen.

I'm using the following code to try get the color and in every case, it comes back with no color... amd I doing something wrong? I'm just trying to see what it returns me...

for (int f = 0; f < xScreen.Field.Length; f++ )
{
if (xScreen.Fieldf.Text != null)
{
if (xScreen.Fieldf.Attributes.Foreground != null)
{
console.Writeline(xScreen.Fieldf.Attributes.Foreground.ToString());
}

}
}

I get information back if I get the FieldType or Base... also, all the Location attributes return properly too.

Thank you in advance for any assistance ~ Jason