Print Page | Close Window

Taskpanel item without image

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=2176
Printed Date: 15 June 2024 at 6:48pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Taskpanel item without image
Posted By: TobiasWeltner
Subject: Taskpanel item without image
Date Posted: 03 May 2005 at 12:46pm

I'd like to use regular items and link items in a task panel group:

 

.Items.Add 0, "Test1.", xtpTaskItemTypeText
.Items.Add 1, "Test2", xtpTaskItemTypeLink

 

However, when I use xtpTaskItemTypeLink, the text is somewhat shifted to the right as if there was some reserved space for an icon which I do not use (except for the group headers). I wonder why this only happens with type link, not with type text.
       




Replies:
Posted By: TobiasWeltner
Date Posted: 04 May 2005 at 4:43am

In other words:

is it possible to display a link without an image?



Posted By: ianp
Date Posted: 05 May 2005 at 1:52am

Try adjusting the margins to compensate for the missing icon:

'This sample code illustrates how to change the margins around a task panel item.
Dim Group As TaskPanelGroup
Dim Item As TaskPanelGroupItem

Set Group = wndTaskPanel.Groups.Add(0, "System Tasks")
Set Item = Group.Items.Add(1, "Normal", xtpTaskItemTypeLink, 1)
Set Item = Group.Items.Add(2, "Left 15", xtpTaskItemTypeLink, 1)
Item.SetMargins 15, 0, 0, 0
Set Item = Group.Items.Add(3, "Zero", xtpTaskItemTypeLink, 1)
Item.SetMargins 0, 0, 0, 0
Set Item = Group.Items.Add(4, "Left -15", xtpTaskItemTypeLink, 1)
Item.SetMargins -15, 0, 0, 0



Posted By: TobiasWeltner
Date Posted: 09 May 2005 at 3:44am

Excellent, thanks!

One more question to links: on my system, the link text ist colored, and once the mouse is over it, it gets underlined. I was looking very hard but which property determines whether the underlining appears only on demand or always?

I would like to see my links underlined all the time. Any clue? Thanx!




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net