View Full Version : Window blanking out background when displayed
02-27-2002, 04:13 AM
Does creating the display file with RSTDSP *YES help?
02-27-2002, 05:09 AM
I tried that, and it still blanks out the background when the window is being displayed.
02-28-2002, 03:28 PM
Jsinner, below is an example for a single customer selection window. I hope this is useful to get the job done. A DSPSIZ(24 80 *DS3) A CA10(10 'CANCEL') A PAGEDOWN A R CSFL SFL A WSSEL 1A B 7 2VALUES(' ' 'X') A WSCNUM 5Y 0O 7 6EDTCDE(Z) A WSNAME 30A O 7 14 A R CSFLCTL SFLCTL(CSFL) A BLINK A OVERLAY A 41 SFLDSP A SFLDSPCTL A 40 SFLCLR A 99 SFLEND(*MORE) A SFLSIZ(0011) A SFLPAG(0010) A 49 SFLMSG('No selected custome A WINDOW(CSFLCMD) A RCDNBR 4S 0H SFLRCDNBR A WSPCUS 5Y 0I 4 39 A 1 15'Customer selection' A DSPATR(HI) A 3 1'Type "X" to select, press A COLOR(BLU) A 4 14'Position to customer . .' A 6 1'Sel' A DSPATR(HI) A 6 5'Customer' A DSPATR(HI) A 6 14'Name' A DSPATR(HI) A R CSFLCMD A WINDOW(3 14 19 45) A 18 2'F10=Cancel' A COLOR(BLU) A R DUMMY A ASSUME A 1 3' '
02-28-2002, 04:05 PM
Are you compiling the DSPF with RSTDSP(*YES)? The default is RSTDSP(*NO). Dave
03-01-2002, 07:16 AM
Try writing the DUMMY record after each call to the external program. Make sure you have the keyword KEEP in the subfile display as well as OVERLAY and ASSUME in the DUMMY record. an example: WRITE SCRN1F EXFMT SCRN1C READC SCRN1 92 DOU *INKA = *ON CALL DSRCQW2P PARM test UPDATE SCRN1 WRITE DUMMY READC SCRN1 92 ENDDO
03-01-2002, 10:44 AM
I created the DSPF with the default RSTDSP(*NO). George.
03-01-2002, 11:18 AM
I have created a subfile that is in a window. The window and subfile have been coded to use both *DS3 and *DS4 and the DSPMOD keyword I have also created a program calling some API's to determine the current screen size. When I call the window program and the DSPMOD is set to *DS3, the screen background is cleared, if the DSPMOD is set to *DS4 then the background screen is still showing. I have also coded a dummy record using ASSUME. Can anybody tell me what I am doing or not doing that is causing the background screen to clear? Thanks
03-01-2002, 11:18 AM
In order for windows to operate effectively, you must compile with RSTDSP(*YES). This may or may not be a solution to your situation. Dave
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.