Код:Program CraftMenuDemo; var aHandle, aCount, i: LongInt; aName: String; begin If FindCraftMenu('', aHandle) Then WriteLn('Craft menu Found') Else Exit; GetMenuItemsCount(aHandle, aCount); WriteLn(IntToStr(aCount)+' items'); If aCount=0 Then Exit; For i:=0 to aCount-1 do begin GetMenuItemName(aHandle, i, aName); WriteLn(aName); end; GetFirstItemIndex(aHandle, i); GetMenuItemName(aHandle, i, aName); WriteLn('First item is "'+aName+'"'); SetFirstItemIndex(aHandle, aCount-1); GetFirstItemIndex(aHandle, i); GetMenuItemName(aHandle, i, aName); WriteLn('After Set: First item is "'+aName+'"'); end.