Print Page | Close Window

Subclassing the Verb window......

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=2731
Printed Date: 21 November 2024 at 11:03pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Subclassing the Verb window......
Posted By: Kevin6
Subject: Subclassing the Verb window......
Date Posted: 16 August 2005 at 6:46am

Hi,

 I would like to subclass the verb window - currently when you use the current line of code -:

 this->GetVerbs()->Add(_T("Run Update"), 1);

It adds a 'link' to the verb panel - but I would like to add 'buttons'?

It is not clear to me  how to do this as the Verb window would appear to be set up via the Property Pane as a child window.....

Can anyone point me in the right direction for this?

regards

Richard



-------------
Kevin.



Replies:
Posted By: Kevin6
Date Posted: 24 August 2005 at 8:36am

Cor that wasn't fun....

So the verb window and the help window are not 'windows' at all which I would have thought would be a much neater implementation.

They are CRects that get drawn during the Paint call for the Property Grid.

To customise these you need to derive your own Property Grid and over-ride the OnPaint - but not call the Codejock base class method.

This will still let the grid area to be drawn but the Verb and help area are now disabled... and you can draw what you want here...

I would recommend referring to the code source in XTPropertyGrid.h and .cpp to replicate and customise the drawing.

Rich



-------------
Kevin.



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