Print Page | Close Window

TaskPanel Control Item

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=1107
Printed Date: 06 May 2024 at 11:03am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: TaskPanel Control Item
Posted By: TareqKhan
Subject: TaskPanel Control Item
Date Posted: 26 August 2004 at 6:16am

Hi

I have added a control to a  taskpanel item (a picture box containing a couple of checkboxes), however when the code is executed the c ontrol covers the taskpanel caption... Anybody know what I am doing wrong?  The example that comes with the software works fine, but if I copy the code into my project the item covers the caption.  I sure it is a very simple problem, but I have got to the point where I cannot see the wood for the trees.



-------------
Tareq



Replies:
Posted By: SuperMario
Date Posted: 26 August 2004 at 7:28am
There is probably a better way, but you can try the SetMargins for the item:


    Set Item = Group.Items.Add(0, "", xtpTaskItemTypeControl)
    Set Item.Control = picture1
    Item.SetMargins 0, 30, 0, 0



Posted By: TareqKhan
Date Posted: 26 August 2004 at 8:27am

Thanks... that works fine... I have just realised that the offset is the amount of space take up by a ShortcutCaption that I have above the taskpanel.  It appears the taskpanel control is performing all of its rendereing relative to the top of the form instead of its own top.

Thanks again for you help.



-------------
Tareq



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