Critical bugs in 12.0 |
Post Reply |
Author | |
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
Posted: 02 May 2008 at 5:01pm |
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.) |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hello,
Please send them to support@codejock.com with details and screenshots.
Thanks.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
Oleg, please update this thread when you know more about these bugs!
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
3.
So just comment
EnableOffice2007Frame(this, ((CXTPMDIFrameWnd*)GetParentFrame())->GetCommandBars()->GetPaintManager()); line. |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
Wohaaah! You're da man :). Thanks a lot!
|
|
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 |