Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Browse window
Message
De
18/01/2007 16:19:06
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
18/01/2007 02:45:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01186516
Message ID:
01186806
Vues:
29
>>How to change attrib of browse window? like size and position?
>>
>>TIA.
>>
>>:)
>
>Here is a trick I learnt many years ago
>
>Use yourtable
>DEFINE WINDOW xx FROM 10,10 SIZE 1,1 NAME xx
>xx.WIDTH=500
>xx.HEIGHT=500
>BROWSE IN WINDOW xx NAME yy SAVE NOWAIT
Actually, with Browse Window (without IN) you'd have the width and height of the grid same as the window's without having to specifically set them. It behaves as if the grid is maximized in the window.
>yy.setall('DynamicBackColor', 'IIF(Mod(Recno(),2)=0,Rgb(255,255,255),Rgb(128,128,128))') && one example
>yy.HIGHLIGHTBACKCOLOR=0x00ff00 && another example
>yy.HIGHLIGHTSTYLE= 1 && another example
>yy.WIDTH=xx.WIDTH
>yy.HEIGHT=xx.HEIGHT
>*yy.AUTOFIT()
>ACTIVATE WINDOW xx
>BROWSE LAST
>RELEASE WINDOWS xx

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform