Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
About .mpr
Message
De
29/10/1999 07:17:59
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
29/10/1999 06:49:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00283683
Message ID:
00283687
Vues:
9
>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform