Unfortunately we're using WTL but there isn't a task panel sample, so I dug up a copy of c# and modified the task panel sample (see the end of this message) but the group icon size doesn't change. In my original message I was using SetIconSize on the task panel object (which I thought was how it would be done) but it seems there is also a SetIconSize on the group object, neither of these seem to change the size of the group icons. The item icons change but not the group. Any ideas?
void CreateTaskPanel()
{
TaskPanelGroup Group = wndTaskPanel.Groups.Add(0, "System Tasks");
Group.Tooltip = "These tasks apply to your computer";
Group.Special = true;
Group.Items.Add(ID_TASKITEM_HIDECONTENTS, "Hide the contents of this drive", XTPTaskPanelItemType.xtpTaskItemTypeLink, 1);
Group.Items.Add(ID_TASKITEM_ADDORREMOVE, "Add or remove programs", XTPTaskPanelItemType.xtpTaskItemTypeLink, 2);
Group.Items.Add(ID_TASKITEM_SEARCH, "Search for files and folders", XTPTaskPanelItemType.xtpTaskItemTypeLink, 3);
Group = wndTaskPanel.Groups.Add(0, "File and Folders Tasks");
Group.Tooltip = "These tasks apply to the files and folders you select";
Group.Items.Add(ID_TASKITEM_NEWFOLDER, "Make a new folder", XTPTaskPanelItemType.xtpTaskItemTypeLink, 4);
Group.Items.Add(ID_TASKITEM_PUBLISH, "Publish this folder to the Web", XTPTaskPanelItemType.xtpTaskItemTypeLink, 5);
Group.Items.Add(ID_TASKITEM_SHARE, "Share this folder", XTPTaskPanelItemType.xtpTaskItemTypeLink, 6);
Group = wndTaskPanel.Groups.Add(0, "Other Places");
TaskPanelGroupItem Item = Group.Items.Add(ID_TASKITEM_MYCOMPUTER, "My Computer", XTPTaskPanelItemType.xtpTaskItemTypeLink, 7);
Item.Tooltip = "Shows the disk drives and hardware connected this computer";
Item = Group.Items.Add(ID_TASKITEM_MYDOCUMENTS, "My Documents", XTPTaskPanelItemType.xtpTaskItemTypeLink, 8);
Item.Tooltip = "Shows this computer documents";
Group.Items.Add(ID_TASKITEM_SHAREDDOCUMENTS, "Shared Documents", XTPTaskPanelItemType.xtpTaskItemTypeLink, 9);
Group.Items.Add(ID_TASKITEM_MYNETWORKPLACES, "My Network Places", XTPTaskPanelItemType.xtpTaskItemTypeLink, 10);
Group = wndTaskPanel.Groups.Add(0, "Details");
wndTaskPanel.SetIconSize(8,8);
Item = Group.Items.Add(0, "Local Disk (C:)", XTPTaskPanelItemType.xtpTaskItemTypeText, -1);
Item.Bold = true;
Item.SetMargins(0, 0, 0, 0);
Group.Items.Add(0, "Local Disk", XTPTaskPanelItemType.xtpTaskItemTypeText, -1);
Group.Items.Add(0, "File System: FAT32", XTPTaskPanelItemType.xtpTaskItemTypeText, -1);
Group.Items.Add(0, "Free Space: 23,3 GB", XTPTaskPanelItemType.xtpTaskItemTypeText, -1);
Group.Items.Add(0, "FTotal Size: 76,2 GB", XTPTaskPanelItemType.xtpTaskItemTypeText, -1);
Group.IconIndex=1;
Group.SetIconSize( 8, 8 );
wndTaskPanel.Icons = (XtremeTaskPanel.ImageManagerIcons)TaskPanelIcons.Icons;
wndTaskPanel.Reposition();
wndTaskPanel.AllowDrag = XtremeTaskPanel.XTPTaskPanelItemAllowDrag.xtpTaskItemAllowDrag;
}
|