Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Screen size
Message
De
26/04/2007 05:57:25
 
 
À
26/04/2007 05:54:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01220016
Message ID:
01220045
Vues:
38
thank you so much,
i'll try it.


>You can add some code to save the position on exit, and read it back to reposition at the correct place on the next startup. In one of my applications, I have this code in the form's Unload to save the necessary values
>CREATE CURSOR size (width n(4),height n(4),top n(4),left n(4))
>INSERT INTO size (width,height,top,left)  VALUES (this.width,this.Height,this.Top,this.Left)
>CURSORTOXML('size','remsize',1,2+16+512)
>In the forms Load I have this code
>IF FILE('remsize.xml')
>  CREATE CURSOR size (width n(4),height n(4),top n(4),left n(4))
>  XMLTOCURSOR('remsize.xml','size',512+8192)
>  with this
>    .addproperty('gnSavedWidth',size.width)
>    .AddProperty('gnSavedHeight',size.height)
>    .addproperty('gnSavedTop',size.top)
>    .AddProperty('gnSavedLeft',size.left)
>    .Top=this.gnSavedTop
>    .Left=this.gnSavedLeft
>  endwith
>  use
>ENDIF
>In the form's Init
>With this
>  IF VARTYPE(.gnSavedWidth)='N'
>    .Width=.gnSavedWidth
>    .Height=.gnSavedHeight
>  ENDIF
>Endwith
>
>
>
>>hi,
>>the question?? why myform go to the left side at laptop and lcd...???
>>thanks
>>>OK, and what's the question?
>>>
>>>>i useto 800*600, i run my form at lcd screen(17 inch) or laptop,
>>>>
>>>>my form go to the left side ,at my ps (15 or 17 inch) set at center,
>>>>
>>>>thanks.
>>>>
>>>>
>>>>>>hi all,
>>>>>>is there a way to show myform at any screen same size, if i use laptop 15,17 or 19,or monitor 15 ,17 or 19 inch.
>>>>>>
>>>>>>thanks.
>>>>>
>>>>>Depends on what you really mean. Anyway, the best and widely accepted solution is to design your forms to a standard size of your choice, like 1024*768 or 800*600. If your customers have bigger screens with higher resolution, most users want to be able to have more programs visible at a time.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform