SetMargins Method
Description
Sets the top, left, bottom, and right margins of the TaskPanel control. This is the area surrounding each group within the TaskPanel.
Syntax
Public Sub SetMargins( _
ByVal left As Long, _
ByVal top As Long, _
ByVal right As Long, _
ByVal bottom As Long, _
ByVal Middle As Long _
)
Parameters
- left: Left margin
- top: Top margin
- right: Right margin
- bottom: Bottom margin
- Middle: Margin between groups
Example
' This sample code illustrates how to change the margins around a task panel group item.
Dim Group As TaskPanelGroup
Dim Item As TaskPanelGroupItem
Set Group = wndTaskPanel.Groups.Add(0, "System Tasks")
Set Item = Group.Items.Add(ID_TASKITEM_HIDECONTENTS, "Hide the contents of this drive", xtpTaskItemTypeLink, 1)
Item.SetMargins 15, 0, 0, 0
' This sample code illustrates how to change the margins around the task panel groups.
wndTaskPanel.SetMargins 30, 30, 30, 30, 30
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.