Print Page | Close Window

Bug - CXTPEdit Resize v. 13.0

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=14455
Printed Date: 12 December 2024 at 12:42pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Bug - CXTPEdit Resize v. 13.0
Posted By: Algae
Subject: Bug - CXTPEdit Resize v. 13.0
Date Posted: 04 June 2009 at 10:00pm
I haven't had a chance to dig into the code much, but found a bug with borders not drawing properly when a CXTPEdit control is resized using MoveWindow.

Example:

assume that m_cNotes is type CXTPEdit with borders displayed. We want to expand it to the right 100.

        CRect noteRect;
        m_cNotes.GetWindowRect(&noteRect);
        ScreenToClient(&noteRect);
        noteRect.right += 100;
        m_cNotes.MoveWindow(noteRect);

The result is that the borders (upper, lower) seem to draw only to the extent of the original size while the right border is not visible. Replacing the CXTPEdit control with a standard CEdit control draws completely. The control from 10.42 that I used previously works as well.

*Note: In my scenario I am obscuring another edit window with the edit control, but I don't think it matters.





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