Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Property Grid
  New Posts New Posts RSS Feed - Cosmetic: Help Text Height
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Cosmetic: Help Text Height

 Post Reply Post Reply
Author
Message
Simon HB9DRV View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 July 2005
Location: Switzerland
Status: Offline
Points: 458
Post Options Post Options   Thanks (0) Thanks(0)   Quote Simon HB9DRV Quote  Post ReplyReply Direct Link To This Post Topic: Cosmetic: Help Text Height
    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
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: 26 November 2007 at 10:03am
Hi,
 
try
 
grid.SetHelpHeight(40);
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Simon HB9DRV View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 July 2005
Location: Switzerland
Status: Offline
Points: 458
Post Options Post Options   Thanks (0) Thanks(0)   Quote Simon HB9DRV Quote  Post ReplyReply Direct Link To This Post 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
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: 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
Back to Top
Simon HB9DRV View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 July 2005
Location: Switzerland
Status: Offline
Points: 458
Post Options Post Options   Thanks (0) Thanks(0)   Quote Simon HB9DRV Quote  Post ReplyReply Direct Link To This Post 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
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: 27 November 2007 at 11:49am
Hi,
 
You can call pItem->GetItemRect() for last item.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Simon HB9DRV View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 July 2005
Location: Switzerland
Status: Offline
Points: 458
Post Options Post Options   Thanks (0) Thanks(0)   Quote Simon HB9DRV Quote  Post ReplyReply Direct Link To This Post 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
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.186 seconds.