Print Page | Close Window

Cosmetic: Help Text Height

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=8894
Printed Date: 14 May 2024 at 2:54am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Cosmetic: Help Text Height
Posted By: Simon HB9DRV
Subject: Cosmetic: Help Text Height
Date Posted: 26 November 2007 at 4:43am
I would like the Help Text area to use the available free space below the grid with a minimum height of 40 pixels.
 
I don't see a simple way to do this. It's purely cosmetic...


-------------
Simon HB9DRV



Replies:
Posted By: Oleg
Date Posted: 26 November 2007 at 10:03am
Hi,
 
try
 
grid.SetHelpHeight(40);


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Simon HB9DRV
Date Posted: 26 November 2007 at 10:07am
Originally posted by oleg oleg wrote:

Hi,
 
try
 
grid.SetHelpHeight(40);
 
Hi - what I would like to do is use *all* available free space below the grid but don't see how to caculate the available free space.


-------------
Simon HB9DRV


Posted By: Oleg
Date Posted: 26 November 2007 at 1:58pm
Hi,
What _all_ available space ? in pane ?   Call GetClientRect and decrease height of items you need. Actually have no idea what do you need.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Simon HB9DRV
Date Posted: 27 November 2007 at 10:43am

Hi,

Sorry - I have not been clear. In the attached picture there is space below the grid and above the help text. I would like the help area to use all the space below the grid, but I can't find out how big the grid is, also I would need grid resizing notifications (these are available I think).
 
So it's just a question of calculating the grid size - but how :-(
 
This is not essential!
 


-------------
Simon HB9DRV


Posted By: Oleg
Date Posted: 27 November 2007 at 11:49am
Hi,
 
You can call pItem->GetItemRect() for last item.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Simon HB9DRV
Date Posted: 27 November 2007 at 12:24pm
Originally posted by oleg oleg wrote:

Hi,
 
You can call pItem->GetItemRect() for last item.
 
Thanks


-------------
Simon HB9DRV



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