Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » Ownerdraw property for GridCell Collapse All
Subject Author Date
harshad jahagirdar Mar 20, 2008 - 6:35 AM

Support,


I am facing exactly same problem as


http://www.prof-uis.com/prof-uis/tech-support/general-forum/adding-style-combobox-into-cextpropertygridctrl-56642.aspx#59687


can you please help me out? I have handeled both the virtual functions as recommended in this thread but the events are not being fired. I have derived my class from CextGridCellComboBox. What else I need to do further so that the events will be fired? Please help.


Thanks!


Harshad

harshad jahagirdar Mar 31, 2008 - 3:23 AM

Thanks a lot! That stuff really worked, I figured out that my class implementation was missing inclusion of macro



IMPLEMENT_ExtGridCell_Clone()


Thanks a lot again for valuable help.


 


-Harshad


harshad jahagirdar Mar 26, 2008 - 5:42 AM

Support,


Is there any update on this, please  help


-Harshad

harshad jahagirdar Mar 24, 2008 - 2:33 AM


Below is the code for the creating instance. It is not working. Can you guide me what might be missing?


 


CSimOColorPickerCombo *pValue =


STATIC_DOWNCAST(


CSimOColorPickerCombo,


ValueActiveGetByRTC( RUNTIME_CLASS(CSimOColorPickerCombo) )


);


Technical Support Mar 21, 2008 - 1:35 PM

These virtual methods should be invoked if you correctly instantiated the cell object.

In the case of property grid it can look like this:

CYourGridCellComboBox * pValue =
            STATIC_DOWNCAST(
                        CYourGridCellComboBox,
                        ValueActiveGetByRTC( RUNTIME_CLASS(CYourGridCellComboBox) )
                        );
ASSERT_VALID( pValue );


harshad jahagirdar Mar 24, 2008 - 3:05 AM

It will be great if you can send me some sample which is working successfully yo my email ID; hjahagirdar@gmail.com


Will appreciate your help.


Thanks,


Harshad

Technical Support Mar 28, 2008 - 6:05 AM

Here is the sample project. We added our class CYourGridCellComboBox and overrode only one virtual method CYourGridCellComboBox::OnPopupListBoxItemDraw().

There we copied the original code and changed only two lines:

// COLORREF clrText = wndListBox.LbItemTextColorGet( nIndex );
// COLORREF clrBack = wndListBox.LbItemBackColorGet( nIndex );

COLORREF clrText = RGB(255,0,0);
COLORREF clrBack = RGB(255,255,0);


Here you can see the result:




So we cannot agree that such method is not invoked.