Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OpenForm() within ContextMenuExecute
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
CodeMine
Titre:
OpenForm() within ContextMenuExecute
Divers
Thread ID:
00675028
Message ID:
00675028
Vues:
46
Just need a quick "reality check" here because this all just seemed to simple.

I have created some rightmouse click context menu's for selected ComboBoxes in CodeMine 7. I am calling them with the m.goStateManager.OpenForm as in the following sample code. It all works perfectly, etc. The user can leave all the forms up - or close them, make additional changes, etc.

I am just wanting to make sure that it is OK to call the m.GoStateManager within a form like the following.
FUNCTION cbocombobox.contextmenuexecute
LPARAMETERS cOption

IF NOT DODEFAULT(m.cOption)
    DO CASE
    CASE m.cOption = '%barformcatcode'  && Bar details in Applition Editor.
    * CatForm.scx is the Form that builds the default items I place in
    * the ComboBoxArray.
    m.goStateManager.OpenForm('CatForm.scx','Stuff I passing to init')

    OTHERWISE
        RETURN .F.
    ENDCASE
ENDIF
Thanks,

Mel Cummings
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform