Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can preview those SELECTED, but not Print those SELECTED
Message
De
02/05/2007 23:20:24
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01221933
Message ID:
01222078
Vues:
25
>>By the way, how does the grid not losing focus cause this problem?
>>
>>Thanks!
>
>Don't ask :-)
>VFP has this problem since its first version (I think, I stared with VFP5 and it was there).
>The Grid is my "favorite" control (other is ComboBox) Grid occupies everything, changes the current alias when you never expected, changes the current record of its RecortdSource Table/Cursor, goes blank when you change its rowsource etc..., so move the focus outside the Grid to some control that could receive it.
>Label could not receive the focus. If you have some TextBox, ComboBox or any control that has SetFocus Method just use it before at the begining of your printing routine. something like:
>
>Thisform.TextBox1.SetFocus()
>SELECT ...
>SET FILTER ....
>REPORT FORM ......
>
VFE even has a method SetFocusToFirst() or something like that, which makes sure that there's such a textbox, by creating one (offscreen, with negative coordinates), then setting the focus to it. Then it kills it mercilessly when not needed anymore. The end user doesn't notice a thing (and I've tried this on a 400 MHz Celeron in VFP7 and it was just as fast - I saw it only after reading the code).

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