Plugin:MirLua/Module/m clist/de: Difference between revisions

From Miranda NG
Jump to navigation Jump to search
Wishmaster (talk | contribs)
Created page with "Name des Menüeintrags."
Wishmaster (talk | contribs)
Created page with "Position des Menüeintrags."
Line 27: Line 27:
| style="text-align:center" | {{Ls|YesNo/no}}
| style="text-align:center" | {{Ls|YesNo/no}}
| style="text-align:center" | <code>number</code>
| style="text-align:center" | <code>number</code>
| Menu item position.
| Position des Menüeintrags.
|-
|-
! scope="row" class="MirLuaParametersTable-parameter" | hIcon
! scope="row" class="MirLuaParametersTable-parameter" | hIcon

Revision as of 01:35, 4 November 2024

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' })

Contact menu

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' })

Tray menu

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' })