Share

AcApStatusBar::Insert

C++

virtual BOOL Insert(
    int nIndex, 
    AcTrayItem* pTrayItem, 
    BOOL bUpdate = TRUE
) = 0;

Description

This function inserts a new tray item into the status bar at the specified index position.

Note

The status bar may contain hidden panes, so the index and pane count may not match that of the visible panes.

To prevent screen flicker when inserting multiple tray items, set bUpdate to false. When you are finished inserting tray items, call AcApStatusBar::Update() to update the display.

Returns true if the pane is successfully inserted; otherwise, returns false.

Parameters

Parameters Description
nIndex Input zero-based index indicating position at which to insert the tray item
pTrayItem Input pointer to the tray item object to add
bUpdate Input Boolean: true to make the status bar display this tray item immediately; false if the tray item should not be displayed until the next call to AcApStatusBar::Update()

Links

AcApStatusBar

Was this information helpful?