Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where is the number of columns?
Message
 
À
06/09/2000 02:00:09
Walter Meester
HoogkarspelPays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00412542
Message ID:
00412929
Vues:
19
>George,
>
>I think you missed the point. The question was about changing the page lay-out of a label (or report). You can't do that with the common dialog. Ko was right to use the Bar # _mfi_pgset to create a Page Setup menu item. And of course you're right that it will only be enabled whena report or label is edited. But since this is the way many Windows programs work (I'm not sure if it is THE windows standard), this is the best solution.
>
Walter,

My thoughts here covered a couple of other areas. First, the fact the _mfi_pgset works (with repors or otherwise) isn't documented. This might change, but I don't know that and neither does anyone else not with the Fox team. Second, because of its nature, ideally you'd want this only available when a report is being edited. Naturally, you can't use SYS(1500) unless the bar has been defined. This wasn't a problem in earlier versions of FoxPro, since the dialog was called from elsewheres.

About the only solution I can come up with is to programmatically define and release the bar(s) as necessary with* Define bars
DEFINE BAR _med_sp300 OF _mview PROMPT "\-"
DEFINE BAR _mfi_pgset OF _mview PROMPT "Page Setup"
* Release them
RELEASE BAR _med_sp300 OF _mview
RELEASE BAR _mfi_pgset OF _mview
This code, naturally places the Prompt on the View menu. I'd would have preferred the Report menu, but haven't been able to do so. The big problem is monitoring whether or not a report is currently the topmost object. That's the PITA.

George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform