Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Request : C::B View::notebook enhancements
daniloz:
--- Quote from: jens on December 20, 2010, 01:22:32 pm ---The mousewheel-feature is easy to implement on wxGTK, but needs a hack using mouseenter- and mouseleave-event on windows.
That's the cause, why it took so long to create it.
--- End quote ---
Thanks jens... I was actually thinking that your super DwellTimer could also be used to implement the mousewheel and I got the same problems as you... but, anyway, you were quicker... Very nice !!! I've downloaded the patch and will test right now !
Thank you again!
daniloz:
Maximize on double-click and mousewheel working like a charm... Great!!!
However, I the tooltip is not working anymore... is this normal? (I missed it already)
daniloz:
@jens:
It crashed here, just after I finished writing the last post and clicked back on C::B... :-)
Here is the RPT:
--- Code: ---Error occured on Monday, December 20, 2010 at 13:50:56.
C:\Work\codeblocks_trunk\src\output\codeblocks.exe caused an Access Violation at location 010e5a77 in module C:\Work\codeblocks_trunk\src\output\codeblocks.dll Reading from location 00000000.
Registers:
eax=00000000 ebx=00000000 ecx=0022f4e0 edx=0000000e esi=ffffffff edi=0022f4e0
eip=010e5a77 esp=0022f398 ebp=0022f3c0 iopl=0 nv up ei pl zr na po nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00010246
Call stack:
010E5A77 C:\Work\codeblocks_trunk\src\output\codeblocks.dll:010E5A77 _ZN13cbAuiNotebook14OnLeaveTabCtrlER12wxMouseEvent
62783C28 C:\Work\codeblocks_trunk\src\output\wxmsw28u_gcc_custom.dll:62783C28 _ZN12wxEvtHandler21ProcessEventIfMatchesERK21wxEventTableEntryBasePS_R7wxEvent
6278404E C:\Work\codeblocks_trunk\src\output\wxmsw28u_gcc_custom.dll:6278404E _ZN12wxEvtHandler23SearchDynamicEventTableER7wxEvent
62784103 C:\Work\codeblocks_trunk\src\output\wxmsw28u_gcc_custom.dll:62784103 _ZN12wxEvtHandler12ProcessEventER7wxEvent
627CF28E C:\Work\codeblocks_trunk\src\output\wxmsw28u_gcc_custom.dll:627CF28E _ZN8wxWindow18GenerateMouseLeaveEv
627D22CC C:\Work\codeblocks_trunk\src\output\wxmsw28u_gcc_custom.dll:627D22CC _ZN8wxWindow13MSWWindowProcEjjl
627CB6FE C:\Work\codeblocks_trunk\src\output\wxmsw28u_gcc_custom.dll:627CB6FE _Z9wxWndProcP6HWND__jjl@16
77ECFD72 C:\Windows\system32\USER32.dll:77ECFD72 GetWindowLongW
77ECFE4A C:\Windows\system32\USER32.dll:77ECFE4A GetWindowLongW
77ED018D C:\Windows\system32\USER32.dll:77ED018D GetMessageW
77ED022B C:\Windows\system32\USER32.dll:77ED022B DispatchMessageW
627B0966 C:\Work\codeblocks_trunk\src\output\wxmsw28u_gcc_custom.dll:627B0966 _ZN11wxEventLoop14ProcessMessageEP6tagMSG
627B0B43 C:\Work\codeblocks_trunk\src\output\wxmsw28u_gcc_custom.dll:627B0B43 _ZN11wxEventLoop8DispatchEv
62844A6C C:\Work\codeblocks_trunk\src\output\wxmsw28u_gcc_custom.dll:62844A6C _ZN17wxEventLoopManual3RunEv
62824279 C:\Work\codeblocks_trunk\src\output\wxmsw28u_gcc_custom.dll:62824279 _ZN9wxAppBase8MainLoopEv
004058C4 C:\Work\codeblocks_trunk\src\output\codeblocks.exe:004058C4
6273114E C:\Work\codeblocks_trunk\src\output\wxmsw28u_gcc_custom.dll:6273114E _Z14wxEntryCleanupv
627895D6 C:\Work\codeblocks_trunk\src\output\wxmsw28u_gcc_custom.dll:627895D6 _Z7wxEntryP11HINSTANCE__S0_Pci
00401D71 C:\Work\codeblocks_trunk\src\output\codeblocks.exe:00401D71 WinMain@16 C:/Work/codeblocks_trunk/src/src/app.cpp:260
00460446 C:\Work\codeblocks_trunk\src\output\codeblocks.exe:00460446
004010DB C:\Work\codeblocks_trunk\src\output\codeblocks.exe:004010DB
00401158 C:\Work\codeblocks_trunk\src\output\codeblocks.exe:00401158
768ED0E9 C:\Windows\system32\kernel32.dll:768ED0E9 BaseThreadInitThunk
77D319BB C:\Windows\system32\ntdll.dll:77D319BB RtlInitializeExceptionChain
77D3198E C:\Windows\system32\ntdll.dll:77D3198E RtlInitializeExceptionChain
--- End code ---
Sorry, but I cannot give you more information, see below...
--- Code: ---addr2line -e C:\Work\codeblocks_trunk\src\devel\codeblocks.dll 010E5A77
C:\Work\codeblocks_trunk\src\output\codeblocks.dll[010E5A77]:
??:0
--- End code ---
Jenna:
--- Quote from: daniloz on December 20, 2010, 02:05:46 pm ---@jens:
It crashed here, just after I finished writing the last post and clicked back on C::B... :-)
--- End quote ---
No such crash here.
Did you try to remove the devel and output subdirectory and the pch-files (include/*.gch) manually, to be sure everything is linked correctly.
The windows-hack for the mousewheel seems to break the tooltips. I will see if I find a solution.
For the moment, you can just comment out the part of the hack in cbauinotebook.cpp in cbAuiNotebook::UpdateTabControlsArray() (the lines that disconnect and connect the wxEVT_LEAVE_WINDOW and wxEVT_ENTER_WINDOW events).
Jenna:
--- Quote from: jens on December 20, 2010, 06:29:11 pm ---
--- Quote from: daniloz on December 20, 2010, 02:05:46 pm ---@jens:
It crashed here, just after I finished writing the last post and clicked back on C::B... :-)
--- End quote ---
No such crash here.
Did you try to remove the devel and output subdirectory and the pch-files (include/*.gch) manually, to be sure everything is linked correctly.
The windows-hack for the mousewheel seems to break the tooltips. I will see if I find a solution.
For the moment, you can just comment out the part of the hack in cbauinotebook.cpp in cbAuiNotebook::UpdateTabControlsArray() (the lines that disconnect and connect the wxEVT_LEAVE_WINDOW and wxEVT_ENTER_WINDOW events).
--- End quote ---
I found the cause for the crash (shame on me): the dynamically connected event-handler have the control, that sends the event as this-pointer, not the instance of the class, they are member of. But the compiler does not know this (dynamically) and therefore it does not lead to an error, if we call a member-function directly or use a member-variable as pointer.
It's corrected now, also the issuethat the tooltips are closed immediately aftr they are created.
ToolTip-creation gives the focus to the tooltip, this leads to a mouseleave-evemt of the tabctrl, this leads to a restore of the old focus (or set it to the new selected tab) and this closes the tooltip, because it loses the focus.
Should be fixed in the attached patch.
EDIT:
updated patch: http://forums.codeblocks.org/index.php/topic,13826.msg93728.html#msg93728
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version