Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - TaskPanel Control Item
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

TaskPanel Control Item

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


Joined: 16 August 2004
Location: United Kingdom
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote TareqKhan Quote  Post ReplyReply Direct Link To This Post Topic: TaskPanel Control Item
    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
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
TareqKhan View Drop Down
Newbie
Newbie


Joined: 16 August 2004
Location: United Kingdom
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote TareqKhan Quote  Post ReplyReply Direct Link To This Post 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
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.172 seconds.