Bug in CXTPReportFilterEditControl |
Post Reply |
Author | |
Sergio
Senior Member Joined: 18 September 2006 Status: Offline Points: 216 |
Post Options
Thanks(0)
Posted: 18 April 2008 at 10:41am |
Hi,
The Filter Edit control of the Report Control behaves strangely: it erases its border and it positions the text badly.
There's a bug here :
It must be : CClientDC dc(this);
Please fix it in the next release of Codejock.
Regards,
|
|
Sergio
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Think it was already changed.
Here is last version:
void CXTPReportFilterEditControl::OnPaint()
{ if (GetWindowTextLength() == 0 && ::GetFocus() != m_hWnd) { CPaintDC dc(this); // device context for painting CXTPFontDC autoFont(&dc, GetFont(), GetXtremeColor(COLOR_GRAYTEXT));
// show hint text
CString strText = GetHint(); CRect rc;
GetClientRect(&rc); dc.FillSolidRect(rc, GetXtremeColor(COLOR_WINDOW)); CRect rcText;
GetRect(&rcText); dc.DrawText(strText, rcText, DT_SINGLELINE | DT_VCENTER | DT_NOPREFIX | DT_EDITCONTROL); } else { Default(); } } ps. Never use CClientDC in WM_PAINT handler.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Sergio
Senior Member Joined: 18 September 2006 Status: Offline Points: 216 |
Post Options
Thanks(0)
|
Ok, thank you, here is the code of my version :
The "Default();" call is missing here ---> it paints text on the whole control (no margins and borders/client area)...
We will upgrade.
Regards,
|
|
Sergio
|
|
Sergio
Senior Member Joined: 18 September 2006 Status: Offline Points: 216 |
Post Options
Thanks(0)
|
Hi,
Thank you, we just upgraded to the version 12.0.0 and it works fine now !
|
|
Sergio
|
|
vijay kumar
Newbie Joined: 28 August 2007 Status: Offline Points: 2 |
Post Options
Thanks(0)
|
Can someone provide me the documentation on using the CXTPReportFilterEditControl. The help document doesn't help me enough...
Vijay
|
|
Vijay Kumar,
India |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |