Share

TrayItem Class

Description

This .NET class wraps the AcTrayItem ObjectARX class.

The AcTrayItem class represents an individual tray item in the tray icon area of the status bar. A tray item is represented by an icon.

To add a new tray item to the tray icon area, create an object derived from AcTrayItem and use the StatusBar.Add() or StatusBar.Insert() function to add it to the status bar.

To modify a tray item in the tray icon area, modify the tray item object attributes and call StatusBar.Update().

To remove a tray item from the tray icon area, use the StatusBar.Remove() function.

To add a bubble notification window for a tray item, create an AcTrayItemBubbleWindowControl object with the desired settings and call AcTrayItem.ShowBubbleWindow().

Class Hierarchy

Autodesk.AutoCAD.Windows.StatusBarItem
    Autodesk.AutoCAD.Windows.TrayItem

Visual Basic

Public sealed Class TrayItem
Inherits StatusBarItem

C#

public sealed class TrayItem : StatusBarItem;

Links

TrayItem Constructor, TrayItem Methods

Was this information helpful?