Forum Discussion

kumar_N's avatar
kumar_N
Occasional Contributor
14 years ago

Reg: Janus UI command Bars

Hi ..



How to select the menus or items in the janus UI commband bars. I need to select the particular item or menu in that.



The clrFullclassname: Janus.Windows.UI.CommandBars.UICommandBar



1) the count property is not supported. \





Regard

Naresh

4 Replies

  • kumar_N's avatar
    kumar_N
    Occasional Contributor
    Hi David



    Tx for your reply. The UICtrlsMainMenu is not working for UICommandBar in Janus system. To select the particular item in the command bars

    'Janus.Windows.UI.CommandBars.UICommandBar.



    Any other work around, to select the items in the UIcommand bars in Janus



    Regards

    Naresh



  • Hi Naresh,





    I have tested the UICommandBar control with the following application shipped along with Janus controls:

    <Janus Systems>\Controls for Microsoft .NET\Windows Forms Controls v3\Tutorials and Samples\UI.v3\CSharp\Samples\UIToolbarsWordPad





    The following script demonstrates how to select the specified menu item:



    Sub Test

      Dim wordPad

      Set wordPad = Sys.Process("WordPad")

      Log.Message("Number of items: " & wordPad.MainForm.UICtrlsMainMenu.Count)

      Call wordPad.MainForm.UICtrlsMainMenu.Click("File|Close")

    End Sub







    If this does not help, please send a sample application containing the control to our Support Team via our Contact Support form.