Print Page | Close Window

How disable item

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Task Panel
Forum Description: Topics Related to Codejock Task Panel
URL: http://forum.codejock.com/forum_posts.asp?TID=23574
Printed Date: 19 July 2019 at 1:09pm


Topic: How disable item
Posted By: wako
Subject: How disable item
Date Posted: 15 February 2018 at 7:56pm
Hi. 

I need disable an items from a Group.

Anyone have the solution Wink. Thanks a lot.



Replies:
Posted By: olebed
Date Posted: 16 February 2018 at 7:41am
Hello,
    Dim Group As TaskPanelGroup
    Dim Item As TaskPanelGroupItem
   
    Set Group = wndTaskPanel.Groups.Add(0, "Other Places")
    Set Item = Group.Items.Add(ID_TASKITEM_MYCOMPUTER, "My Computer", xtpTaskItemTypeLink, 7)
    Item.Enabled = False

Regards,
 Oleksandr Lebed


Posted By: wako
Date Posted: 16 February 2018 at 8:52am
Perfect!!! Clap. thanks a lot Oleksandr



Print Page | Close Window