>my program as below :-
>
>..
>..
>@ 3,3 say 'MY COMPANY'
>DO MAIN.MPR
>..
>..
>
>Q1. i want to display 'MY COMPANY' on screen then run .MPR
>but the .MPR with clear up the screen.
>how can i keep the screen.
>
>Q2. can i use @ 3,3 say .... to dispay a picture file on screen
>
>Q3. can i keep a FORM layout on screen after THISFORM.RELEASE
Q1-If there is not something in mpr instructing to clear screen then "do mymenu.mpr" doesn't clear the screen.
Q2-Yes you could with syntax :
@ nRow, nCol say "picturefile" Bitmap
but instead use image control. ie:
_screen.addobject("myImage")
with _screen.myimage
.left = 10
.top = 10
.height = 300
.width = 450
.stretch = 1
.picture = "myPictureFile.bmp"
.visible = .t.
endwith
This is more elegant and controllable. ie: After you display something on screen (say display memo) all you need is to call :
_screen.cls
This would clear text output and bring your image back. Or if you for any reason call "clear" command simply call :
_screen.myImage.visible = .t.
to get your picture back.
Also you could directly use :
_screen.picture = "myPictureFile.bmp"
to create a "wallpaper" but I don't know a direct way of preventing tiling picture.
Q3- ??? Do you mean its last coordinates ? If so yes in a table or ini file you could save Left, Top, Height, Width etc properties.
Cetin