Plugin:MirLua/Module/m clist/de

From Miranda NG
Revision as of 01:36, 4 November 2024 by Wishmaster (talk | contribs) (Created page with "== Traymenü ==")
Jump to navigation Jump to search

Allows you to work with menus of the contact list.

Inkludieren Sie folgendes Modul: local clist = require('m_clist')

Hauptmenü

AddMainMenuRoot

Creates a root menu item in the main menu.

Parameter

Parametername Benötigt Typ Beschreibung
name Ja string Name des Menüeintrags.
position Nein number Position des Menüeintrags.
hIcon Nein light userdata Icon handle.

Ergebnis

     Typ: light userdata

     If success, returns menu item handle, otherwise nil.

Beispiel

local hRootMenuItem = m.AddMainMenuRoot('My root menu item')

AddMainMenuItem

Creates a menu item in the main menu.

Parameter

Parametername Benötigt Typ Beschreibung
data Ja table MenuItem table.

Ergebnis

     Typ: light userdata

     If success, returns menu item handle, otherwise nil.

Beispiel

local hMenuItem = m.AddMainMenuItem({ Name ='My menu item' })

Kontaktmenü

AddContactMenuRoot

Creates a root menu item in the contact menu.

Parameter

Parametername Benötigt Typ Beschreibung
name Ja string Menu item name.
position Nein number Menu item position.
hIcon Nein light userdata Icon handle.

Ergebnis

     Typ: light userdata

     If success, returns menu item handle, otherwise nil.

Beispiel

local hRootMenuItem = m.AddContactMenuRoot('My contact menu item')

AddContactMenuItem

Creates a menu item in the contact menu.

Parameter

Parametername Benötigt Typ Beschreibung
data Ja table MenuItem table.
protocol Nein string Name of the protocol (prefix for the service name)

Ergebnis

     Typ: light userdata

     If success, returns menu item handle, otherwise nil.

Beispiel

local hMenuItem = m.AddContactMenuItem ({ Name ='My menu item' })

Traymenü

AddTrayMenuItem

Creates a menu item in the tray menu.

Parameter

Parametername Benötigt Typ Beschreibung
data Ja table MenuItem table.

Ergebnis

     Typ: light userdata

     If success, returns menu item handle, otherwise nil.

Beispiel

local hMenuItem = m.AddTrayMenuItem ({ Name ='My menu item' })