Skip to main content

I have a hopefully short term need to keep an old unix application which uses PANELS running under Visual COBOL on Windows.

I've managed to get the code compiled and running and fixed the function keys etc. using ADIS but no matter what I do I can't get the colours to work, everything comes out black on a green background so it's impossible to see what I'm doing when running the code. Using a simple test program with display statements the colours work fine so it's definitely a panels issue, unfortunately everyone who originally wrote this code has long since eft the company so we have limited knowledge of how panels even works which isn't helping.

In case it matters I'm using VC 6.0 and VS 2019.

Any suggestions as to where to look greatly appreciated!

Regards

Gary


#VisualCOBOL
#panels

I have a hopefully short term need to keep an old unix application which uses PANELS running under Visual COBOL on Windows.

I've managed to get the code compiled and running and fixed the function keys etc. using ADIS but no matter what I do I can't get the colours to work, everything comes out black on a green background so it's impossible to see what I'm doing when running the code. Using a simple test program with display statements the colours work fine so it's definitely a panels issue, unfortunately everyone who originally wrote this code has long since eft the company so we have limited knowledge of how panels even works which isn't helping.

In case it matters I'm using VC 6.0 and VS 2019.

Any suggestions as to where to look greatly appreciated!

Regards

Gary


#VisualCOBOL
#panels

community.microfocus.com/.../testpanels2.zip

This zip file contains a Visual COBOL for Visual Studio Panels project that I brought over from the Net Express Example programs. It shows that color is supported by filling in the attribute byte record corresponding to the text records with a series of color codes that correspond to the colors for ADIS.

I hope that this might help you understand how this works.


community.microfocus.com/.../testpanels2.zip

This zip file contains a Visual COBOL for Visual Studio Panels project that I brought over from the Net Express Example programs. It shows that color is supported by filling in the attribute byte record corresponding to the text records with a series of color codes that correspond to the colors for ADIS.

I hope that this might help you understand how this works.

Thanks for this, I had missed some of the config options when porting to Windows which I thought were only needed on unix, I think I have it 95% working now so just a few minor issues to resolve.