Description


Include file: xmenu.h

Functions

DeleteItem

Parameters

SHORT id the id of the item to delete

Remarks

Removes an item

InsertItem

Parameters

XMenuItem * item item to insert
XMenuItem * submenu a submenu where to insert the item. If nessacary a submenu is created (default is NULL).

Remarks

inserting/removing items

RemoveItem

Parameters

SHORT id the id of the item to remove

Remarks

Removes an item

CheckItem

Parameters

SHORT id the id of the requested item BOOL check TRUE=check, FALSE=not checked

Remarks

Set an item checked/not checked

EnableItem

Parameters

SHORT id the id of the requested item
BOOL enable TRUE=enable, FALSE=disable

Remarks

Enables/disables

GetItemID

Parameters

SHORT pos position of the item

Return-Value

SHORT theID

Remarks

Get the ID of an item from its position

CascadeItem

Parameters

SHORT itemId the menuItem to become cascade

Remarks

If you call CascadeItem() a menuitem with a submenu becomes cascaded, that means a button is inserted which enables the submenu. If you have made a menuitem cascaded you must select a default-item from the submenu of that menuitem by calling CheckItem().

GetItem

Parameters

XMenuItem * item buffer to hold the information
SHORT theID the ID of the requested menu-item

Return-Value

BOOL success

Remarks

Get an item of a XMenuBar or XPopupMenu

GetItemCount

Return-Value

SHORT itemCount

Remarks

Returns the count of items

GetItemText

Parameters

USHORT id the id of the requested item XString * buffer buffer to hold the data

Remarks

Get the text of an item

SetItemText

Parameters

XString * text text to display

Remarks

Set the text of an item


This document was generated by Jens von Pilgrim's Autodoc