Print Page | Close Window

Add wew function called SetHelpHeight()

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Property Grid
Forum Description: Topics Related to Codejock Property Grid
URL: http://forum.codejock.com/forum_posts.asp?TID=63
Printed Date: 21 November 2024 at 5:07pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Add wew function called SetHelpHeight()
Posted By: jwhagen
Subject: Add wew function called SetHelpHeight()
Date Posted: 11 June 2003 at 4:25pm

I have implemented a function that allows me to change the height of the Help bar within the PropertyGrid class. This is useful as it allows me to preset the height as the application is initializing. Otherwise I am required to resize it each tme the application is started. The code I use is as follows:

// Call this member function to set the height of the help pane when visible.

// The integer value represents the height in pixels.

//

void SetHelpHeight(int nHeight);

////////////////////////

void CXTPPropertyGrid::SetHelpHeight(int nHeight)

{

   m_nHelpHeight = nHeight;

   CXTPPClientRect rc(this);

   Reposition(rc.Width(), rc.Height());

}

Thanks.




Replies:
Posted By: Oleg
Date Posted: 12 June 2003 at 2:36pm

Thank you for your Suggestion

Added SetHelpHeight and  SetViewDivider methods.

 




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