Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Fast Library For Clipper 3.02 Reference - <b>onitem()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
    OnItem()

         Reactivates an item of a submenu

    Syntax:

         OnItem( aMenu, nSubMenu, nPos ) -> Nil

         aMenu    : The menu created with NewMenu()
         nSubMenu : The number of the submenu where reactivate the item
         nPos     : The position of the item in the submenu

    Description:

         Reactivates a item. The item is selectionable again.
         A line can not be reactivate, because is a non selectionable item
         during all the process. Only can be reactivate an item that was
         previously desactivated.

    Return:

         Nothing.

    Example:

         aMenu := NewMenu( { "^System", "^Tools", "^Other" }, ;
                           { "N/W", "R/W", "W/B",  "W+/B", ;
                             "N/W", "W/B", "N+/W", "R/W", "GR+/B" } )
         AddItem ( aMenu, 1, "Item ^1", "Message 1" )
         AddItem ( aMenu, 1, "Item ^2", "Message 2" )

         OffItem ( aMenu, 1, 2 )  // Desactive the second item
         OnItem ( aMenu, 1, 2 )   // Now i reactive it

See Also: OffItem()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson