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 » PropertyGrid does not get painted correctly Collapse All
Subject Author Date
Nitesh Singh Sep 18, 2006 - 11:59 PM

Hi this is a very common problem with me. And it is annoying also...

I am having a propertygrid that displays property of various objects.. Problem is suppose when I change the item of the combobox (the top combobox of the propertygrid control) then only are area which show that propertyvalues is painted and and toolbar, tooltipbar area does get paint and gets blank..

how to solve this problem

this happes many times..

Technical Support Sep 19, 2006 - 7:03 AM

Would you send us a test project or some screenshots that demonstrate the problem?

Please note the problem may be caused by the CExtGroupBox control. If you put your property grid into a group box, make sure they are assigned the proper tab order. Because the Prof-UIS group box has a non-transparent background, the tab order is essential. Windows paints controls on the dialog step by step starting from the control with the highest tab order number to the control with the lowest number. So, ensure your group box is assigned the highest tab order number.

Nitesh Singh Sep 19, 2006 - 10:25 PM

I have placed the propertyGrid on CExtResizableDialog directly ( The dialog contains only a Custom control for the propertygrid)....

And I have placed the dialog on my own CControlBar derived class.... ( As CExtControlBar is incompatible for me.. because I am still using CToolBar derived classes for toolbar).......... Please tell me what to do.. Which part of the project do I have to send you as a test project.

"It happens when I do a resize of the controlbar.. but it works fine when I move the whole control bar from one place to other..."

Technical Support Sep 20, 2006 - 8:23 AM

Because you use mixed code, we cannot help you without seeing your project. Would you send us a test project that shows the problem?

Nitesh Singh Sep 19, 2006 - 10:56 PM

CPropertyGridDlg::OnInitDialog()
{
    if( ! CExtResizableDialog::OnInitDialog() )
        return FALSE;
    AddAnchor( IDC_PROPERTY_GRID_CTRL, __RDA_LT, __RDA_RB );
    ShowSizeGrip( FALSE );
    
    PopulateComboBoxBar(); //This function populates the whole propertygridctrl
    return TRUE;
}

void CPropertyGridDlg::OnSize(UINT nType, int cx, int cy)
{
    CExtResizableDialog::OnSize(nType, cx, cy);

    // TODO: Add your message handler code here
    if( nType != SIZE_MINIMIZED )
        CWnd::RepositionBars(0,0xFFFF,0);
}


Still when I am resizing propertyGrid painting does not happen... and when I move the whole controlbar then only it shows...
This was resizing problem....

and other problem is when I select a different item in the combobox.. the toobar and tooltipbar doesn’t get painted correctly..

Technical Support Sep 20, 2006 - 8:09 AM

This code is of little help. Would you send us a test project or provide some screenshots?

Nitesh Singh Sep 21, 2006 - 5:19 AM

okie sir... I have attached some screenshots in the mail