IOaddItemToMenu

Top  Previous  Next

Entry add to the Menu or to tool bar.

With this function can be added to the menu line as well as to the tool bar entries. In art it is given where the new entry should be inserted (MENU_ART_BAR, MENU_ART_TOOLBAR_...).

Parametre

pipes (PIOPIPES) [IN]

The trading pipes gives the issue canal.

art (int) [IN]

Gives whether the new entry is inserted in the tool bar or in the menu line.

windowID (ULONG) [IN]

With windowID the receiver whose tool bar or menu receives the new entry is described.

style (ULONG) [IN]

style describes how the new entry is to be inserted. MIS_TEXT brags which concerns it around text, MIS_BITMAP means that a bitmap should be inserted in the tool bar. MIS_SUBMENU gives that the entry should be inserted as an untermenu. The constants can become geodert.

attrib (ULONG) [IN]

M_Param_Beschr

text (char *) [IN]

text gives the entry.

pos (int) [IN]

pos gives the position in which either the menu entry or the bitmap should be inserted in the tool bar. Should be inserted behind in, the constant MIT_END is available for it.

feldID (int) [IN]

Here the value 0 can be handed over.

execute (char *) [IN]

With execute an order sequence which stands behind the entry can be handed over. And with choice of the entry is explained. Should several orders be explained, the Return sign must be also given '(\n'). If routines are called which expect inputs in the dialogue, these inputs can be given how they are also given in the command line. Should no order be given, ZERO can be also given.

help (char *) [IN]

Here the help file in which the required help is can be given. With menu registration makes of course no sense, and, therefore, ZERO can be also handed over. It is not evaluated at the moment.

helpNameInHelpFile (char *) [IN]

To look within the help according to the right word, the suitable word can be handed over here. With menu entries makes of course no sense, and, therefore, ZERO can be also handed over. It is not evaluated at the moment.

menueName (char *) [IN]

Name of the menu in which the entry should occur. At the moment with tool bars books to the differentiation of the strips.

icon (char *) [IN]

String with the number of the Icons which should be shown beside a menu. Start value is "10000". Parametre can be blank or ZERO.

Result

---

Declaration

#include "ausgabe.h"

 

void DLLENTRY IOaddItemToMenu (

PIOPIPES pipes,

int art,

ULONG windowID,

ULONG styles,

ULONG attrib

char * text,

int pos,

int feldID,

char * execute,

char * help,

char * helpNameInHelpFile

);

Constants

MENU_ART_BAR 1

MENU_ART_POPUP 2

MENU_ART_TOOLBAR_SMALL 3

MENU_ART_TOOLBAR_NORMAL 4

MENU_ART_TOOLBAR_BIG 5

MENU_ART_STATUSBAR 6

MENU_ART_ACCEL 7

MENU_ART_SYSMENU 8

MENU_ART_TEMP 0x8000

MIS_TEXT

MIS_SUBMENU

MIS_BITMAP

MIS_BREAK

Related functions

IOaddMenuToWindow

IOdeleteItemFromMenu