//    Instruction Example :      menulist.hide (objectid,long)


        #define X 50
        #define Y 50
        #define WIDTH  100
        #define HEIGHT 40

        screen.resolution.set (512,384)

        screen.set (BACK)
          pattern.display ("avo\bubble.gif")
        screen.end ()

              menulist.color.select (COLOR_SILVER)
              menulist.backcolor.select (COLOR_GRAY)
        @list=menulist.create (WIDTH,HEIGHT,menu.manager)
              menulist.item.add (@list,"Open")
              menulist.item.add (@list,"Load")
              menulist.item.add (@list,"Save")
              menulist.item.add (@list,"Save as...")
              menulist.item.add (@list,"Print")
              menulist.item.add (@list,"Quit")

        menulist.display (@list,X,Y)

        text.display ("Click an item to hide the menulist during 1 second.",CENTER,10)
        text.display ("Press ESCAPE to exit.",CENTER,350)

        keyboard.wait (KEY_ESCAPE)

        script.stop ()

        procedure menu.manager (@event,%status,%item)
          menulist.hide (@event,TRUE)
          time.wait (1)
          menulist.hide (@event,FALSE)
        end procedure