System Tray Buttons

A new “Y” option allows buttons to be created on the task bar System Tray. When a button is created with a “Y” option it will physically be located in the system tray (the location provided on the create command is ignored). This button will respond like any other ProvideX button and return CTL events to the application.

Generally, a button in the system tray should be created as a Global button so it can send signals at all times. However, a standard windows button can be created in which case they will only be active while their associated window is active.

By default, the ICON used for the button will be the PxPlus ICON. If desired you may specify two ICONs to be used by the button in the standard Button text in the same way as bitmaps can be specified. The first ICON will be the normal state image; the second represents the disabled image. For Example:

BUTTON 10,@(10,10,10,10)=”{Image1.ico|Image2.ico}”,OPT=”Y”

This will create a button in the System Tray that will generate a CTL 10 when pressed. Image1 will be used to represent the button while it is enabled and Image2 will be used when the button is disabled.

If a Popup menu is used in conjunction with a System Tray button, it will appear beside the Icon based on the mouse position.