Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FPW2.6 Screen Text Disappears

Status
Not open for further replies.

jsams

Programmer
Aug 22, 2000
73
US
I have an application with multiple screens utilizing drop down menus to navigate screens. Screens have text, buttons, checkboxes, etc.

I have a modification to the system that needs to "DO menu.mpr" to put up a new dropdown menu after the screen is up and active. When the code gets back from the menu 'DO', the text is missing from the screen. All the controls are OK and I can pop up child screens over the main screen and they are OK. Only way I can get the screen text back is move to another screen and come back. Any ideas???

TIA
John
 
This is probably just a "minimally implemented" video driver. Try a different resolution and/or color depth and see if it makes a difference - many drivers are writen to only optimize a couple of these combinations. Also check to make sure you've got the most current driver from the video card / chip set provider. In FPW, there is little you can do to "fresh" the video buffer.

Rick
 
You might also try tweaking your display's 'Hardware Acceleration' setting.

Dave S.
 
Thanks for the responses. I did a little more debugging this morning and found that everything on the screen is being 'washed' off by a CLEAR command (1st line executed in .mpr) when I 'DO' the menu.mpr. On return from the menu the screen 'refreshes' all the dynamic controls and they reappear, but the static lines, boxes, and text are gone.

Was able to keep the screen intact by manually commenting out the CLEAR in the menu.mpr, but this is not really the way I want to go for this application. Not sure there is a way around this in FPW 2.6. The CLEAR is apparently created by the system when the menu is generated.

Any other ideas??

jsams
 
As far as I recall, the menu generator doesn't create a CLEAR command, you most likely have one in one of your code snippets. You should verify this first.

Dave S.
 
Two things,
1)
check that you have not manually placed a clear command in the general options of the menu and

2)
Try modifying the menu generator and removing the clear from there. (ps I didn't find a clear command in my generator)

Hope one of these suggestions helps

Gem
 
You were right Dave and Gem, there was a CLEAR in the General Options, Setup. Legacy code, so I won't take the blame for that one, but it was there alright! Fixed the problem. Many thanks to all who responded.

John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top