Print Page | Close Window

CXTPTreeCtrl GUI Issues

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=21962
Printed Date: 17 November 2024 at 5:37am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPTreeCtrl GUI Issues
Posted By: mikegb
Subject: CXTPTreeCtrl GUI Issues
Date Posted: 31 October 2013 at 10:26am
Using Toolkit Pro 16.2.4.  Consider the following dialog box with 4 columns of 2 tree controls per column.  Separated as follows:
 
Column 0, Row 0 - CTreeCtrl
Column 0, Row 1 - CTreeCtrl with images
Column 1, Row 0 - CTreeCtrl with explorer theme  (i.e. Windows SetWindowTheme API)
Column 1, Row 1 - CTreeCtrl with images and explorer theme
Column 2, Row 0 - CXTPTreeCtrl
Column 2, Row 1 - CXTPTreeCtrlwith images
Column 3, Row 0 - CXTPTreeCtrl with explorer theme (i.e. CXTP SetExplorerTheme API)
Column 3, Row 1 - CXTPTreeCtrl with images and explorer theme
 
With checkboxes enabled, this is how CXTPTreeControl compares to the standard tree control:
 
 
 
Following CXTPTreeControl GUI issues are identified:
  1. As has been previously noted on this forum, CXTPTreeCtrl doesn't handle checkboxes properly when there isn't an image as well (Column 2, Row 0 and Column 3, Row 0).
  2. Not using the themed colors with SetExplorerTheme is enabled.  Compare column 3 with the correct colors in column 1.
  3. Nitpick but the expand/collapse icon is one pixel lower than the standard tree control.  Compare Columns 2,3 with Columns 0,1.
I can fix the GUI issues by using this class instead:
 
class CXTPTreeCtrlHack : public CXTPTreeCtrl
{
   virtual void DoPaint(CDC& dc, BOOL bInternal) { __super::DoPaint(dc, FALSE); }
};
 
But then you lose other CXTPTreeControl features.  Wanted to let you know.  Thanks.
 
 



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