Upgrading from a previous version of Foxpro

I'm currently upgrading an application written using foxpro 3.0

Like the application Paul was rewriting a few threads back, the only thing that doesn't work is the old character screen menu. It had 10 @SAY and 10 @GET commands and a READ. Then it routed execution to .PRG files with a DO CASE ... ENDCASE loop.

I am not looking into investing the time to rewrite the existing UI, and would rather just get the old program working as it was. The program itself compiles with no errors, and everything looks fine when the menu is filtered through using the keyboard, but when the mouse cursor goes over one of the selections, all displayed text and the menu buttons themselves dissapear.

Only the selection that is currently being hovered over is displayed; it still executes the proper .PRG though, and the problem is then replicated on the next page. What I find really odd though is that when I open then exit any offshoot of the original menu, the original menu renders perfectly without the bug.


Answer this question

Upgrading from a previous version of Foxpro

  • CodeKracker

    I was able to find the solution myself shortly after posting this thread.

    The issue was being caused by Windows XP themes, which could be turned off by adding the line

    SYS(2700,0)

    to the beginning of the application.




  • Arne Tauber

    I found the same problem with my legacy screen code.. only I wanted to activate XP themes.  After some experimentation, I placed this code in ActivateEvent on the form designer.  If you still have the legacy pageframes as I do, make sure you place this code on the subsequent pages:

    _SCREEN.activeform.lockscreen = .T.
    _SCREEN.activeform.lockscreen = .F.

    This code has been out in the field for about 6 months and seems to work just fine with XP themes activated.

  • Upgrading from a previous version of Foxpro