OSTaskbarManager.SetButtons

Syntax:

SetButtons(<Buttons>)

Parameters:

<Buttons> (required)

Type: Array.
Array should contain objects of type Structure with the following
keys:
  • Picture– type Picture. A picture on the button. It is recommended to use pictures of size 16x16 (format - ICO). It is useful to have pictures of sizes 20x20px and 24x24px.
  • Title – type String. Tooltip for a button.
  • Action – type NotifyDescription. Function that is called after clicking the button under the preview with the following parameter:
    • <AdditionalParameters> - value specified when the NotifyDescription object was created.

Description:

Adds buttons under the preview area of the taskbar.
Works only in Windows 7 and later.
In other operation systems does not execute any actions.

Availability:

Thin client, thick client.

Note:

Upon a repeated call replaces previously set buttons.

Example:

Buttons = New Array();

Button1 = New Structure();
Button1.Insert("Picture", PictureLib.Icon1);
Button1.Insert("Title", "Button1");
Operation1 = New NotifyDescription("Test", NotifyTest, "Message1");
Button1.Insert("Action", Operand1);

Button2 = New Structure();
Button2.Insert("Picture", PictureLib.Icon2);
Button2.Insert("Title", "Button2");
Operation2 = New NotifyDescription("Test", NotifyTest, "Message2");
Button2.Insert("Action", Operand2);

Buttons.Add(Button1);
Buttons.Add(Button2);

OSTaskbar.SetButtons(Buttons);


    

1C:Enterprise Developer's Community