Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OpenForm() within ContextMenuExecute
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
CodeMine
Title:
OpenForm() within ContextMenuExecute
Miscellaneous
Thread ID:
00675028
Message ID:
00675028
Views:
45
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
Next
Reply
Map
View

Click here to load this message in the networking platform