Subclassing the Verb window...... |
Post Reply |
Author | |
Kevin6
Groupie Joined: 13 May 2005 Location: United Kingdom Status: Offline Points: 30 |
Post Options
Thanks(0)
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.
|
|
Kevin6
Groupie Joined: 13 May 2005 Location: United Kingdom Status: Offline Points: 30 |
Post Options
Thanks(0)
|
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.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |