CXTPPropertyGridInplaceList - derivation. |
Post Reply |
Author | |
Kevin6
Groupie Joined: 13 May 2005 Location: United Kingdom Status: Offline Points: 30 |
Post Options
Thanks(0)
Posted: 05 October 2005 at 7:35am |
Oleg, I would like to be able to customise some of the functionality of the ListBox control in the PropertyGrid. I do not understand how I am supposed to do this as the class construction makes this difficult to understand. There are no examples that I can find in the Samples to help me with this. I would appreciate some advice. regards Richard |
|
Kevin.
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
in 9.80 was added CXTPPropertyGrid::SetInplaceList to set custom inplace list m_wndGrid.SetInplaceList (new CMyInplaceList);
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Kevin6
Groupie Joined: 13 May 2005 Location: United Kingdom Status: Offline Points: 30 |
Post Options
Thanks(0)
|
Dear Oleg, As ever many thanks for your reply - I am able to continue with my development. I have search for -: SetInplaceList in the help/documentation but it is not documented. Please can you add it to the documentation list. regards Richard ps. I am using ver 9.70 |
|
Kevin.
|
|
Cedric
Newbie Joined: 27 October 2005 Status: Offline Points: 20 |
Post Options
Thanks(0)
|
Hye. I tried to inherit CTXPropertyGridInplaceList, to draw something different than text. drawing of GridItem is fine. But when I to show my InplaceList when AddString message is occur i got an execption error. Where I'm wrong ? I join a sample with my problem 2006-01-25_053544_GridSample.zip PS: My Item is "Style" in global setting and I worked with 9.80 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Standard List created with LBS_STRING style. I suggest you to change logic something like: CStyleItem::CStyleItem( CString _Caption ) //SOLID epaisseur 1 a cause du system NT AddStyleItem( PS_DOT, 2 ); //Ajouter les épaisseurs "SOLID" >1 void CStyleItem::AddStyleItem(int style,int epaisseur) to move items to constraints of Items. and drawing: void CStyleItemList::DrawItem ( LPDRAWITEMSTRUCT lpDrawItemStruct )
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Cedric
Newbie Joined: 27 October 2005 Status: Offline Points: 20 |
Post Options
Thanks(0)
|
Thanks it's worked.
|
|
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 |