Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - Taskpanel item without image
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Taskpanel item without image

 Post Reply Post Reply
Author
Message
TobiasWeltner View Drop Down
Newbie
Newbie


Joined: 12 January 2005
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote TobiasWeltner Quote  Post ReplyReply Direct Link To This Post Topic: Taskpanel item without image
    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.
       

Back to Top
TobiasWeltner View Drop Down
Newbie
Newbie


Joined: 12 January 2005
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote TobiasWeltner Quote  Post ReplyReply Direct Link To This Post Posted: 04 May 2005 at 4:43am

In other words:

is it possible to display a link without an image?

Back to Top
ianp View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 19 December 2003
Location: United Kingdom
Status: Offline
Points: 119
Post Options Post Options   Thanks (0) Thanks(0)   Quote ianp Quote  Post ReplyReply Direct Link To This Post 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



Edited by ianp
Back to Top
TobiasWeltner View Drop Down
Newbie
Newbie


Joined: 12 January 2005
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote TobiasWeltner Quote  Post ReplyReply Direct Link To This Post 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!

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.203 seconds.