Print Page | Close Window

Drawing bug

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=7071
Printed Date: 24 September 2024 at 2:57pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Drawing bug
Posted By: ABuenger
Subject: Drawing bug
Date Posted: 07 May 2007 at 4:41pm
I've found a drawing bug of the property grid with long items. I've tested it also without the skinframework but no difference. Here are the screenshots and steps to reproduce it:

1) Item with  combobox, show tooltip for long string:



2) Move the mouse cursor to the right above the combo box button:



3) Move the mouse cursor up to the other date item button:





-------------
Codejock support



Replies:
Posted By: Oleg
Date Posted: 08 May 2007 at 6:48am
Hi,
 
Can you try reproduce same with our PropertyGrid sample?


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: ABuenger
Date Posted: 08 May 2007 at 7:16am

Hello Oleg,

I've modified the sample to reproduce the bug. The problem occurs if the property grid is not hosted inside a static control.

I've replaced the placeholder with DDX_Control(pDX, IDC_PROPERTY_GRID, m_wndPropertyGrid);.

The property grid also flickers a lot in that case if you resize the dialog.
css_styles/default_style.css">



uploads/temp/20070508_070734_GridSample.zip">uploads/temp/20070508_070734_GridSample.zip



-------------
Codejock support


Posted By: Oleg
Date Posted: 08 May 2007 at 7:50am
Hello,
 
I not really like that you subclass "STATIC" control to PropertyGrid. We register special Windows Class - "XTPPropertyGrid"....
 
Anyway if you don't create it using Create method you have to be sure it has clip styles. Modify styles in resources or add in code:

m_wndPropertyGrid.ModifyStyle(0, WS_CLIPCHILDREN | WS_CLIPSIBLINGS);



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: ABuenger
Date Posted: 08 May 2007 at 9:05am
Originally posted by oleg oleg wrote:

Anyway if you don't create it using Create method you have to be sure it has clip styles. Modify styles in resources or add in code:

m_wndPropertyGrid.ModifyStyle(0, WS_CLIPCHILDREN | WS_CLIPSIBLINGS);



Thanks, that fixed it.



-------------
Codejock support


Posted By: Oleg
Date Posted: 08 May 2007 at 10:00am
... also set  Notfy style of your STATIC control to handle click events... Now you can't resize Bottom  Help area.

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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