Print Page | Close Window

Critical bugs in 12.0

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=10461
Printed Date: 11 June 2024 at 4:23am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Critical bugs in 12.0
Posted By: znakeeye
Subject: Critical bugs in 12.0
Date Posted: 02 May 2008 at 5:01pm

http://forum.codejock.com/uploads/20080505_155112_RibbonMDI_Probl.zip - uploads/20080505_155112_RibbonMDI_Probl.zip

Here, check out this sample. It contains all three bugs + that mystic alphaicon-problem described in another thread!
 
It should be fairly easy to fix them all with this master-sample ;)
 
 
 
Upgraded and got weird behavior. I really hope you can fix #1 and #2 immediately, as these particular bugs ruins my whole program
 
1) Report control.
CXTPReportControl::OnBeforePaste is completely broken! It should only get called on the actual drop, and NOT when entering the window. When my OnBeforePaste function is called, I perform a "is this record already used" by adding it to a lookup-set and checking it next time it is being dropped. When this check is done during "DragEnter" my checked condition will always be true when the actual drop occurs.
 
2) Ribbon-MDI.
If the main frame does NOT have WS_MAXIMIZEBOX-style, it is sized in such way that the taskbar is not visible.
It should behave as it did in XTP 11!
 
3) Ribbon-MDI.
If MDI-child does NOT have WS_BORDER-style, the CXTPTabClientWnd-workspace in the main frame is visible but not painted.
It should not be visible at all! (I removed the style and it works, but I sense underlying problems when I encounter bugs as this one.)



Replies:
Posted By: Oleg
Date Posted: 05 May 2008 at 1:21am
Hello,
Please send them to mailto:support@codejock.com - support@codejock.com with details and screenshots.
Thanks.


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


Posted By: znakeeye
Date Posted: 05 May 2008 at 3:52pm
Oleg, please update this thread when you know more about these bugs!


Posted By: Oleg
Date Posted: 06 May 2008 at 2:26am
Hi,
 
0. As I was sure problem with alpha icons because you removed manifest from appliaction. Once again - ExctactIcon and ImageList support Alpha icons only when you run in Windows XP + have manifest in _your_ application (not our dll)
As you can see our samples  they have Alpha Icons support even for Windows 95 - because we don't have any system methods calls, but handle alpha icons manually. Use our methods instead ExtractIcons and ImageList.
 
to restore manifest add in attached sample in stdafx.h
 

#if (_MSC_VER > 1310) // VS2005

#if defined _M_IX86

#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")

#elif defined _M_IA64

#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'\"")

#elif defined _M_X64

#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"")

#else

#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")

#endif

#endif



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


Posted By: Oleg
Date Posted: 06 May 2008 at 2:30am
0.b.  Never call pControl->SetCustomIcon in Update handler. it creates icon copy each time and can eat some CPU.
 
Better add icon to imagemanager and just call pControl->SetIconIndex(,,);
or at least add some check that icon was already set.


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


Posted By: Oleg
Date Posted: 06 May 2008 at 2:36am
2. Actually now it works as it should.   You can check simple frame without ribbon and see same. previously it worked non-standard.
Instead

cs.style &= ~WS_MAXIMIZEBOX;

use

pMainFrame->ShowWindow(m_nCmdShow);

pMainFrame->UpdateWindow();

pMainFrame->ModifyStyle(WS_MAXIMIZEBOX, 0);

and now it works with standard and ribbon frames.
 
ps. user can still use Double click to restore it.
 
 


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


Posted By: Oleg
Date Posted: 06 May 2008 at 2:38am
3.
 
So just comment

EnableOffice2007Frame(this, ((CXTPMDIFrameWnd*)GetParentFrame())->GetCommandBars()->GetPaintManager());

line.


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


Posted By: Oleg
Date Posted: 06 May 2008 at 2:47am

1. Yes, logic changed to allow find out what record user try to drag.

just override

BOOL CXTPReportControl::OnDrop(COleDataObject* pDataObject, DROPEFFECT dropEffect, CPoint point)

instead.


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


Posted By: znakeeye
Date Posted: 07 May 2008 at 2:41am
Wohaaah! You're da man :). Thanks a lot!



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