Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Task Panel
  New Posts New Posts RSS Feed - Finding Group Height
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Finding Group Height

 Post Reply Post Reply
Author
Message
John31 View Drop Down
Groupie
Groupie
Avatar

Joined: 08 December 2005
Location: United States
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote John31 Quote  Post ReplyReply Direct Link To This Post Topic: Finding Group Height
    Posted: 11 May 2006 at 9:13am

Is there a way to get the group height when expanded.  If you look at the attached screen shot I need to know the height of the Emergency Tickets Group when expanded so I can adjust the height of the Item Control.  Is this possible?

Regards

John Layton
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 11 May 2006 at 5:00pm

Hello,

In some old version was added AutoHeight parameter to fit height:

call

Item.SetSize x, 0, True

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
John31 View Drop Down
Groupie
Groupie
Avatar

Joined: 08 December 2005
Location: United States
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote John31 Quote  Post ReplyReply Direct Link To This Post Posted: 11 May 2006 at 6:04pm

That worked.  Be nice to have this documented somewhere!!!!

Regards

John Layton
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 11 May 2006 at 8:04pm

From SymbolReference.chm:

 

SetSize Method

Description

The SetSize method sets the size (width\height) of the item.

Syntax

Public Sub SetSize( _
   ByVal cx As Long, _
   ByVal cy As Long, _
   ByVal AutoHeight As Boolean _
) 

Parameters

cx
New Width of the item.
cy
New Height of the item.
AutoHeight

True to use the default height.  The default height will be the "best fit" for the item.

False to use the height specified by Cy.

See Also

TaskPanelGroupItem Object

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
John31 View Drop Down
Groupie
Groupie
Avatar

Joined: 08 December 2005
Location: United States
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote John31 Quote  Post ReplyReply Direct Link To This Post Posted: 12 May 2006 at 10:48am
Thanks.  FYI the SetSize method does not show up in intellisense
Regards

John Layton
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 12 May 2006 at 6:55pm

Hi,

It is because you declare item as TaskPanelItem and not as TaskPanelGroupItem...

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.266 seconds.