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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FPW26 Screen TO VFP 6.0 Form

Status
Not open for further replies.
Nov 10, 2001
11
US
So after trying unsuccessfully to import a FPW26 screen into VFP (color set *not* supported), I recalled that someone once mentioned, change the .SPR file to a .PRG and work with the code like that.

Okay good idea, but now the FPW26 screen appears way upper left corner of the Form. Like a quarter of the old screen is visible. The window controls are off screen, and there is no way for me to drag it back into the main form of the VPF. It is a big screen running from top to bottom and left to right.

Do I need to modi .SPR -> .PRG and remove references to window placement and size? I'd like to have the screen start at pix 0 x 0.

Am rank am with VFP.

Also can the C++ kit in VS package a VFP EXE for distribution?

Regards and Thanx!
 
Add a line of code to your .SPR/.PRG, or check the Center Window box in your FoxPro screen designer and regenerate the .SPR.

MOVE WINDOW WindowName TO nRow1, nColumn1
| BY nRow2, nColumn2 | CENTER

TO moves the window to nRow1, nColumn1
BY moves the window relative to its current position and
CENTER, centers the window in the screen or parent window.

MOVE WINDOW WindowName TO 0, 0
should do it.

Also can the C++ kit in VS package a VFP EXE for distribution?
Sorry, I don't know about this. I haven't made any apps for distribution, all in-house.


Dave S.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top