SetMargins Method
Description
Sets the margins of the items.
Syntax
Public Sub SetMargins( _
ByVal [left](#) As Long, _
ByVal [top](#) As Long, _
ByVal [right](#) As Long, _
ByVal [bottom](#) As Long _
)
Parameters
- left: Left margin
- top: Top margin
- right: Right margin
- bottom: Bottom margin
Remarks
The TaskPanel allows you to change the margins of the task panel. You can change the margins surrounding the task panel groups, or you can change the margins of each individual task panel group item.
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
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.