I am trying to create a frame with a background and foreground using RGB. I am able to get the background color set. I cannot get the foreground color set. I have attached a test program that has all the variables in it.
Thank you for responding. My problem was that I still support a RM/COBOL application on SCO OpenServer 5. So going back and forth, I sometimes get mixed up. Then I get caught in a loop and get messed up. I am working on a cross-platform GUI program in GnuCOBOL using Cobjapi. RM/COBOL is terminal screens.
Rich Di Iulio
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
you can use also the functions J-GETSCREENWIDTH, J-GETSCREENHEIGHT and so position the frame. I have now added an example (frame2.cob) for this to COBJAPI.
László
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi All!
I am trying to create a frame with a background and foreground using RGB. I am able to get the background color set. I cannot get the foreground color set. I have attached a test program that has all the variables in it.
Any help would be very much appreciated.
Rich Di Iulio
Perhaps supply the copy modules as well and we may help. cobjapi stuff.
I did not supply the Cobjapi, as I assume you would have to install and configure before compiling the source code.
Rich Di Iulio
OK fair enough - can't help you sorry - I have no ideas about whatever cobjapi is.
David,
Thank you for responding and trying to help.
Rich Di Iulio
Hi,
I am not sure what you mean by foreground color, i tested your program and made small changes, i hope it is what you wanted to do.
Last edit: thomas 2021-03-24
thom,
Thank you, that is exactly what I wanted to do. I still get mixed up between RM/COBOL and GnuCOBOL. Again thanks.
Rich Di Iulio
Can you please try to setup a "differences" list and possibly a "port notes" doc [no need to be 100%, but a starter somewhere would be good]?
Simon,
Thank you for responding. My problem was that I still support a RM/COBOL application on SCO OpenServer 5. So going back and forth, I sometimes get mixed up. Then I get caught in a loop and get messed up. I am working on a cross-platform GUI program in GnuCOBOL using Cobjapi. RM/COBOL is terminal screens.
Rich Di Iulio
Hi,
you can use also the functions J-GETSCREENWIDTH, J-GETSCREENHEIGHT and so position the frame. I have now added an example (frame2.cob) for this to COBJAPI.
László