OpenCOBOL Forum Index OpenCOBOL
Screen section, don't work as it should | Register To Post |
| Threaded | Newest First | Previous Topic | Next Topic | Bottom |
| Poster | Thread |
|---|---|
| giacomo | Posted on: 2010/9/8 11:24 |
Just popping in ![]() ![]() Joined: 2010/9/7 From: Verona Posts: 2 |
Screen section, don't work as it should Hello everyone, I'm new. I have a problem with the screen section. I compile this file without problems. When I run, I see a blue background, white text (or gray), but when I write data on the first line and go to the second, the text of the first line disappears. Also does not display the field labels. This is a file that I found on the book by Hubbell Tane "COBOL in 24 hours." On Windows works fine. I have version 1.1 of the OC. What is the problem? Thanks
|
| human | Posted on: 2010/9/8 15:12 |
Home away from home ![]() ![]() Joined: 2007/5/15 From: GERMANY Posts: 1416 |
Re: Screen section, don't work as it should Please give us the exact version of cobc you're using (cobc --version) and tell us what system you use (Unix/MinGW/Cygwin/...)
At least for many Windows-builds colours are broken and fixed for the next pre-release. I'll check the program with next version this week, maybe tomorow. human |
| CutlerGL | Posted on: 2010/9/9 2:31 |
Just can't stay away ![]() ![]() Joined: 2009/6/17 From: Schenectady, NY Posts: 74 |
Re: Screen section, don't work as it should Colors work well in the MinGW build available through the "Wiki" / "Assorted Documents" link to the left.
|
| chaat | Posted on: 2010/9/9 6:16 |
Just popping in ![]() ![]() Joined: 2010/2/12 From: St.Cloud, MN USA Posts: 7 |
Re: Screen section, don't work as it should Gary,
would it be possible for you to get a copy of the most current source (the next pre-release that human spoke of) ? If so perhaps you could rebuild your MinGW installation zip file and I could do some more testing to see if some of the runtime errors that I found would be fixed. It will be nice once we can get the latest / greatest source code available for building the binaries which are to be located on the new server which aoirthoir is working on getting setup. I'm not sure if we have a repository where we can upload files. Or perhaps I could use the same file sharing site where you've loaded the MinGW files. Thanks
|
| human | Posted on: 2010/9/9 8:46 |
Home away from home ![]() ![]() Joined: 2007/5/15 From: GERMANY Posts: 1416 |
Re: Screen section, don't work as it should In this program there are some extensions (stuff that isn't part of any standard.
The problem for the invisible labels roots in the BLANK SCREEN attribute which is not only used for DISPLAY, but for ACCEPT, too [this is a bug in current OC versions because X/Open says it should be ignored here - fix will be submitted to Roger]. Another problem is that the BLANK SCREEN attribute seems to be passed to every sub-item [I will tell Roger about that parser-problem and hope he fixes]. You can work around these problems by removing the BLANK SCREEN attribute there and insert A quite different problem that's not so easy solved is the use of numeric edited entries in screen section. DISPLAY works fine, but there are no routines handling the ACCEPT. I suggest to not ACCEPT them. If somebody is willing to submit a patch it's likely Roger integrates it. human |
| giacomo | Posted on: 2010/9/9 11:42 |
Just popping in ![]() ![]() Joined: 2010/9/7 From: Verona Posts: 2 |
Re: Screen section, don't work as it should Thank you very much for the answers. I removed "Blank Screen" and now I see the screen should look like. The version of my cobc is:
I am a beginner with COBOL and not even see what I want it to appear on the screen is very unrewarding. Thanks again for your help! |
| giorgik | Posted on: 2010/9/28 12:21 |
Not too shy to talk ![]() ![]() Joined: 2010/9/28 From: Posts: 36 |
Re: Screen section, don't work as it should Ciao Giacomo,
sai dirmi come includere anche i colori alla tua maschera che hai postato ? |
| erstazi | Posted on: 2010/10/6 15:10 |
Just popping in ![]() ![]() Joined: 2009/5/20 From: Erie, Pennsylvania Posts: 15 |
Re: Screen section, don't work as it should @giacomo, For classes that the396 and aoirthoir will be teaching, I am wondering what book that you got this information from.
Do you mind if you share what book or learning instruction this is?
|
| reinhardPR | Posted on: 2012/8/6 18:33 |
Just popping in ![]() ![]() Joined: 2011/3/24 From: Posts: 3 |
Re: Screen section, don't work as it should If you change the first lines of your Screen Section to the following definitions, it works fine with OpenCobol 1.1 You dont need to define the constants -just for better readability. 78 black value 0. 78 blue value 1. 78 green value 2. 78 cyan value 3. 78 red value 4. 78 magenta value 5. 78 yellow value 6. 78 white value 7. *> use a label for defining the blank-screen settings Screen Section. 01 Data-Entry-Screen. 03 settings blank screen background-color blue. *> ... the rest needs not to be changed |
| Threaded | Newest First | Previous Topic | Next Topic | Top |
| Register To Post | |









