Class RadTaskbarManager
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class RadTaskbarManager
Constructors
RadTaskbarManager()
Declaration
public RadTaskbarManager()
Methods
ActivateTab(IntPtr)
Activates an item on the taskbar. The window is not actually activated; the window's item on the taskbar is merely displayed as active.
Declaration
public static void ActivateTab(IntPtr formHandle)
Parameters
System. A handle to the window on the taskbar to be displayed as active. |
AddTab(IntPtr)
Adds an item to the taskbar.
Declaration
public static void AddTab(IntPtr formHandle)
Parameters
System. A handle to the window to be added to the taskbar. |
DeleteTab(IntPtr)
Deletes an item from the taskbar.
Declaration
public static void DeleteTab(IntPtr formHandle)
Parameters
System. A handle to the window to be deleted from the taskbar. |
Flash(IntPtr, Int32, Int32)
Flashes the specified window. It does not change the active state of the window.
Declaration
public static void Flash(IntPtr formHandle, int count = 2147483647, int timeout = 0)
Parameters
System. A handle to the window to be flashed. The window can be either opened or minimized. |
System. Number of times that the taskbar button will flash. If you do not specify a value the flashing is infinite, until the Stop |
System. The rate at which the window is to be flashed, in milliseconds. If timeout is zero, the function uses the default cursor blink rate. |
Remarks
Typically, you flash a window to inform the user that the window requires attention but does not currently have the keyboard focus. When a window flashes, it appears to change from inactive to active status. An inactive caption bar changes to an active caption bar; an active caption bar changes to an inactive caption bar.
FlashCore(IntPtr, FLASHINFOFLAGS, Int32, Int32)
Flashes the specified window. It does not change the active state of the window.
Declaration
public static void FlashCore(IntPtr formHandle, FLASHINFOFLAGS flags, int count = 0, int timeout = 0)
Parameters
System. A handle to the window to be flashed. The window can be either opened or minimized. |
FLASHINFOFLAGS
flags
The flash status. This parameter can be one or more of the FLASHINFOFLAGS enum values. |
System. The number of times to flash the window. |
System. The rate at which the window is to be flashed, in milliseconds. If timeout is zero, the function uses the default cursor blink rate. |
FlashUntilActive(IntPtr, Int32, Int32)
Flashes the specified window until it is activated. Note that if the window is currently active the flash will not begin.
Declaration
public static void FlashUntilActive(IntPtr formHandle, int count = 0, int timeout = 0)
Parameters
System. A handle to the window to be flashed. The window can be either opened or minimized. |
System. Number of times that the taskbar button will flash. If you do not specify a value the flashing is infinite or until the app is focused, until the Stop |
System. The rate at which the window is to be flashed, in milliseconds. If timeout is zero, the function uses the default cursor blink rate. |
MarkFullscreenWindow(IntPtr, Boolean)
Marks a window as full-screen.
Declaration
public static void MarkFullscreenWindow(IntPtr formHandle, bool fullScreen)
Parameters
System. The handle of the window to be marked. |
System. A Boolean value marking the desired full-screen status of the window. |
RegisterTab(IntPtr, IntPtr)
Informs the taskbar that a new tab or document thumbnail has been provided for display in an application's taskbar group flyout.
Declaration
public static void RegisterTab(IntPtr tabHandle, IntPtr handleMdi)
Parameters
System. Handle of the tab or document window. This value is required and cannot be System. |
System. Handle of the application's main window. This value tells the taskbar which application's preview group to attach the new thumbnail to. This value is required and cannot be System. |
SetActiveAlt(IntPtr)
Marks a taskbar item as active but does not visually activate it.
Declaration
public static void SetActiveAlt(IntPtr formHandle)
Parameters
System. A handle to the window to be marked as active. |
SetOverlayIcon(IntPtr, Bitmap, String)
Applies an overlay to a taskbar button to indicate application status or a notification to the user.
Declaration
public static void SetOverlayIcon(IntPtr formHandle, Bitmap image, string accessibilityText = null)
Parameters
System. The handle of the window whose associated taskbar button receives the overlay. This handle must belong to a calling process associated with the button's application and must be a valid HWND or the call is ignored. |
System. The overlay image. |
System. A string that provides an alt text version of the information conveyed by the overlay, for accessibility purposes. |
SetOverlayIcon(IntPtr, IntPtr, String)
Applies an overlay to a taskbar button to indicate application status or a notification to the user.
Declaration
public static void SetOverlayIcon(IntPtr formHandle, IntPtr hIcon, string accessibilityText = null)
Parameters
System. The handle of the window whose associated taskbar button receives the overlay. This handle must belong to a calling process associated with the button's application and must be a valid HWND or the call is ignored. |
System. The handle of an icon to use as the overlay. This should be a small icon, measuring 16x16 pixels at 96 dpi. If an overlay icon is already applied to the taskbar button, that existing overlay is replaced.
This value can be System. |
System. A string that provides an alt text version of the information conveyed by the overlay, for accessibility purposes. |
SetProgressState(IntPtr, TaskbarProgressState)
Sets the type and state of the progress indicator displayed on a taskbar button.
Declaration
public static void SetProgressState(IntPtr formHandle, TaskbarProgressState state)
Parameters
System. The handle of the window in which the progress of an operation is being shown. This window's associated taskbar button will display the progress bar. |
Taskbar Flags that control the current state of the progress button. Specify only one of the following flags Taskbar |
SetProgressValue(IntPtr, Int32)
Displays or updates a progress bar hosted in a taskbar button to show the specific percentage completed of the full operation.
Declaration
public static void SetProgressValue(IntPtr formHandle, int percent)
Parameters
System. The handle of the window whose associated taskbar button is being used as a progress indicator. |
System. An application-defined value that specifies percentage of the ongoing operation completion. |
SetProgressValue(IntPtr, Int32, Int32)
Displays or updates a progress bar hosted in a taskbar button to show the specific percentage completed of the full operation.
Declaration
public static void SetProgressValue(IntPtr formHandle, int completed, int total)
Parameters
System. The handle of the window whose associated taskbar button is being used as a progress indicator. |
System. An application-defined value that indicates the proportion of the operation that has been completed at the time the method is called. |
System. An application-defined value that specifies the value completed will have when the operation is complete. |
SetTabActive(IntPtr, IntPtr)
Informs the taskbar that a tab or document window has been made the active window.
Declaration
public static void SetTabActive(IntPtr tabHandle, IntPtr handleMdi)
Parameters
System. Handle of the active tab window. This handle must already be registered through Register |
System. Handle of the application's main window. This value tells the taskbar which group the thumbnail is a member of. This value is required and cannot be System. |
SetTabOrder(IntPtr, IntPtr)
Inserts a new thumbnail into a tabbed-document interface (TDI) or multiple-document interface (MDI) application's group flyout or moves an existing thumbnail to a new position in the application's group.
Declaration
public static void SetTabOrder(IntPtr tabHandle, IntPtr insertBeforeHandle)
Parameters
System. The handle of the tab window whose thumbnail is being placed. This value is required, must already be registered through Register |
System. The handle of the tab window whose thumbnail that tabHandle is inserted to the left of. This handle must already be registered through Register |
SetTabProperties(IntPtr, SetTabPropertiesOption)
Allows a tab to specify whether the main application frame window or the tab window should be used as a thumbnail or in the peek feature under certain circumstances.
Declaration
public static void SetTabProperties(IntPtr tabHandle, SetTabPropertiesOption option)
Parameters
System. The handle of the tab window that is to have properties set. This handle must already be registered through Register |
Set One or more members of the Set |
SetThumbnailClip(IntPtr, RefRECT)
Selects a portion of a window's client area to display as that window's thumbnail in the taskbar.
Declaration
public static void SetThumbnailClip(IntPtr formHandle, RefRECT clipRect)
Parameters
System. The handle to a window represented in the taskbar. |
Ref A Ref |
SetThumbnailClip(Form, Rectangle)
Selects a portion of a window's client area to display as that window's thumbnail in the taskbar.
Declaration
public static void SetThumbnailClip(Form form, Rectangle clipRect)
Parameters
System. The form represented in the taskbar. |
System. The clip rectangle.
To clear a clip that is already in place and return to the default display of the thumbnail, set this parameter to System. |
SetThumbnailClip(Form, Control)
Selects a portion of a window's client area to display as that window's thumbnail in the taskbar.
Declaration
public static void SetThumbnailClip(Form form, Control clipControl)
Parameters
System. The form represented in the taskbar. |
System. The control that will be displayed in the clip rectangle. To clear a clip that is already in place and return to the default display of the thumbnail, set this parameter to NULL. |
SetThumbnailTooltip(IntPtr, String)
Specifies or updates the text of the tooltip that is displayed when the mouse pointer rests on an individual preview thumbnail in a taskbar button flyout.
Declaration
public static void SetThumbnailTooltip(IntPtr formHandle, string toolTip)
Parameters
System. The handle to the window whose thumbnail displays the tooltip. This handle must belong to the calling process. |
System. The text to be displayed in the tooltip. This value can be NULL, in which case the title of the window specified by hwnd is used as the tooltip. |
StopFlash(IntPtr)
Stops the flashing of the specified window.
Declaration
public static void StopFlash(IntPtr formHandle)
Parameters
System. A handle to the window that is currently flashing. |
ThumbBarSetImageList(IntPtr, IntPtr)
Specifies an image list that contains button images for a toolbar embedded in a thumbnail image of a window in a taskbar button flyout.
Declaration
public static void ThumbBarSetImageList(IntPtr formHandle, IntPtr imagelistHandle)
Parameters
System. The handle of the window whose thumbnail representation contains the toolbar to be updated. This handle must belong to the calling process. |
System. The handle of the image list that contains all button images to be used in the toolbar. |
UnregisterTab(IntPtr)
Removes a thumbnail from an application's preview group when that tab or document is closed in the application.
Declaration
public static void UnregisterTab(IntPtr tabHandle)
Parameters
System. The handle of the tab window whose thumbnail is being removed. This is the same value with which the thumbnail was registered as part the group through Register |