Home > Community > Forums > Custom IC SKILL > Skill for new menu item in ICFB window

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 Skill for new menu item in ICFB window 

Last post Sat, Mar 20 2010 7:07 PM by Quek. 1 replies.
Started by Vijay Srinivas 19 Mar 2010 02:12 AM. Topic has 1 replies and 2331 views
Page 1 of 1 (2 items)
Sort Posts:
  • Fri, Mar 19 2010 2:12 AM

    Skill for new menu item in ICFB window Reply

    Hi All,

    I am new to SKILL and I would like to write a code to add a new item in the menu bar for ICFB. I would like to make links to other programs under this menu item.

    Thanks in advance!

     

    Vijay

    • Post Points: 20
  • Sat, Mar 20 2010 7:07 PM

    • Quek
    • Top 10 Contributor
    • Joined on Wed, Oct 14 2009
    • Singapore, 00-SG
    • Posts 1,051
    • Points 15,990
    Re: Skill for new menu item in ICFB window Reply
    Hi Vijay

    Here is an example:

    procedure( CCSsampleMenu(args)
       let( (myItem)
          printf("Inserting user menu in cell :%s\n" args->cellName)
          myItem=hiCreateMenuItem(
             ?name         'myItem
             ?itemText     "One"
             ?callback     "printf(\"Testing\n\")"
          ) ;hiCreateMenuItem

          hiCreatePulldownMenu(
             'myMenu
             "myMenu"
             list( myItem )
          ) ;hiCreatePulldownMenu

          hiInsertBannerMenu(hiGetCurrentWindow() 'myMenu 99)
       ) ;let
    ) ;procedure

    deRegUserTriggers( "maskLayout" nil nil 'CCSsampleMenu)


    Best regards
    Quek
    • Post Points: 5
Page 1 of 1 (2 items)
Sort Posts:
Started by Vijay Srinivas at 19 Mar 2010 02:12 AM. Topic has 1 replies.