Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
wxSmith development
byo:
--- Quote from: tiwag on October 06, 2005, 05:13:48 pm ---i wanted to learn how to work with wxSmith and tried to make a dialog with buttons.
on Button Click a wxTextCtrl should be updated with a new text.
1.) typo in wxButton->SetToolTip
then i noticed, that when i want to set a Tooltip for the Button, there is a typo.
It should insert a wxButton->SetToolTip() member function call,
but it inserts a wxButton->SetToolTop() instead,
which leads to a compiler error of course.
2.) EVENT Handling
i tried to use an event handling function for my button,
everything looks fine, there is an DECLARE_EVENT_TABLE() in the class definition
and an EVENT_TABLE in the implementation file. The app builds fine without errors
but the button-event handler function never gets called !?!
maybe you have an example and/or some documentation how this should work ?
--- End quote ---
Heh, You've found two bugs. Huh, wxSmith doesn't recognize properly if dialog loads from xrc or not :/
I'll try to fix those bugs today :)
tiwag:
--- Quote from: byo ---Heh, You've found two bugs. Huh, wxSmith doesn't recognize properly if dialog loads from xrc or not
--- End quote ---
8)
please
provide a some documentation
* which code does wxSmith generate and
* where does it update the code,
* where can i add my custom code
* ...
and a sample project in any case
so that a newbie can at least make a look how it *should* work,
thanks a lot, i'm shure wxSmith will be a great tool soon !
byo:
--- Quote from: tiwag on October 06, 2005, 06:32:00 pm ---please
provide a some documentation
* which code does wxSmith generate and
* where does it update the code,
* where can i add my custom code
* ...
and a sample project in any case
so that a newbie can at least make a look how it *should* work,
--- End quote ---
I'll write something in wiki but first some bugs are waiting ;)
And there will be wxSmith wizard so creating wxSmith apps will be created just in few clicks :)
takeshimiya:
Yeah, but I vote for the things that tiwag ask, before those wizards with some dogs or clips :P
tiwag:
--- Quote from: byo ---...Heh, You've found two bugs ... I'll try to fix those bugs ...
--- End quote ---
fine, the event-handler is called now, thanks !
but now it crashes everytime, when i click on something of the created dialog-resource
--- Code: ----------------------
Error occured on Friday, October 7, 2005 at 15:03:46.
D:\Programme\CodeBlocks\codeblocks.exe caused an Access Violation at location 0153cef2 in module D:\Programme\CodeBlocks\share\codeblocks\plugins\wxsmith.dll Reading from location 00000020.
Registers:
eax=0147ad80 ebx=00b76848 ecx=01437f30 edx=00000020 esi=016120f0 edi=0022f2d8
eip=0153cef2 esp=0022f098 ebp=0022f140 iopl=0 nv up ei pl nz na pe nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00010202
Call stack:
0153CEF2 D:\Programme\CodeBlocks\share\codeblocks\plugins\wxsmith.dll:0153CEF2 GetSDKVersionMinor
0153D2E5 D:\Programme\CodeBlocks\share\codeblocks\plugins\wxsmith.dll:0153D2E5 GetSDKVersionMinor
100A77A8 D:\TOOLS\wxmsw26_gcc_cb.dll:100A77A8 _ZN12wxEvtHandler21ProcessEventIfMatchesERK21wxEventTableEntryBasePS_R7wxEvent
100A7B6C D:\TOOLS\wxmsw26_gcc_cb.dll:100A7B6C _ZN16wxEventHashTable11HandleEventER7wxEventP12wxEvtHandler
100A8B49 D:\TOOLS\wxmsw26_gcc_cb.dll:100A8B49 _ZN12wxEvtHandler12ProcessEventER7wxEvent
0152C086 D:\Programme\CodeBlocks\share\codeblocks\plugins\wxsmith.dll:0152C086 GetSDKVersionMinor
100A77A8 D:\TOOLS\wxmsw26_gcc_cb.dll:100A77A8 _ZN12wxEvtHandler21ProcessEventIfMatchesERK21wxEventTableEntryBasePS_R7wxEvent
100A7B6C D:\TOOLS\wxmsw26_gcc_cb.dll:100A7B6C _ZN16wxEventHashTable11HandleEventER7wxEventP12wxEvtHandler
100A8B49 D:\TOOLS\wxmsw26_gcc_cb.dll:100A8B49 _ZN12wxEvtHandler12ProcessEventER7wxEvent
01526297 D:\Programme\CodeBlocks\share\codeblocks\plugins\wxsmith.dll:01526297
01523596 D:\Programme\CodeBlocks\share\codeblocks\plugins\wxsmith.dll:01523596
01523068 D:\Programme\CodeBlocks\share\codeblocks\plugins\wxsmith.dll:01523068
100A77A8 D:\TOOLS\wxmsw26_gcc_cb.dll:100A77A8 _ZN12wxEvtHandler21ProcessEventIfMatchesERK21wxEventTableEntryBasePS_R7wxEvent
100A7B6C D:\TOOLS\wxmsw26_gcc_cb.dll:100A7B6C _ZN16wxEventHashTable11HandleEventER7wxEventP12wxEvtHandler
100A8B49 D:\TOOLS\wxmsw26_gcc_cb.dll:100A8B49 _ZN12wxEvtHandler12ProcessEventER7wxEvent
1010D7E6 D:\TOOLS\wxmsw26_gcc_cb.dll:1010D7E6 _ZN8wxWindow16HandleMouseEventEjiij
1010FF59 D:\TOOLS\wxmsw26_gcc_cb.dll:1010FF59 _ZN8wxWindow13MSWWindowProcEjjl
10108B20 D:\TOOLS\wxmsw26_gcc_cb.dll:10108B20 _Z9wxWndProcP6HWND__jjl@16
77D18734 C:\WINDOWS\system32\USER32.dll:77D18734 GetDC
77D18816 C:\WINDOWS\system32\USER32.dll:77D18816 GetDC
77D189CD C:\WINDOWS\system32\USER32.dll:77D189CD GetWindowLongW
77D18A10 C:\WINDOWS\system32\USER32.dll:77D18A10 DispatchMessageW
77D2E097 C:\WINDOWS\system32\USER32.dll:77D2E097 IsDialogMessageW
77D3C6AB C:\WINDOWS\system32\USER32.dll:77D3C6AB IsDialogMessageA
1010803E D:\TOOLS\wxmsw26_gcc_cb.dll:1010803E _ZN8wxWindow17MSWProcessMessageEP6tagMSG
100E85B4 D:\TOOLS\wxmsw26_gcc_cb.dll:100E85B4 _ZN11wxEventLoop17PreProcessMessageEP6tagMSG
100E84F9 D:\TOOLS\wxmsw26_gcc_cb.dll:100E84F9 _ZN11wxEventLoop14ProcessMessageEP6tagMSG
100E8AE4 D:\TOOLS\wxmsw26_gcc_cb.dll:100E8AE4 _ZN11wxEventLoop8DispatchEv
100E8880 D:\TOOLS\wxmsw26_gcc_cb.dll:100E8880 _ZN11wxEventLoop3RunEv
101823DE D:\TOOLS\wxmsw26_gcc_cb.dll:101823DE _ZN9wxAppBase8MainLoopEv
004039AC D:\Programme\CodeBlocks\codeblocks.exe:004039AC
1004318F D:\TOOLS\wxmsw26_gcc_cb.dll:1004318F _Z14wxUninitializev
100B077C D:\TOOLS\wxmsw26_gcc_cb.dll:100B077C _Z7wxEntryP11HINSTANCE__S0_Pci
0040138A D:\Programme\CodeBlocks\codeblocks.exe:0040138A
0044669A D:\Programme\CodeBlocks\codeblocks.exe:0044669A
004011E7 D:\Programme\CodeBlocks\codeblocks.exe:004011E7
00401238 D:\Programme\CodeBlocks\codeblocks.exe:00401238
7C816D4F C:\WINDOWS\system32\kernel32.dll:7C816D4F RegisterWaitForInputIdle
-------------------
Error occured on Friday, October 7, 2005 at 15:09:01.
D:\Programme\CodeBlocks\codeblocks.exe caused an Access Violation at location 00000000 Reading from location 00000000.
Registers:
eax=00000000 ebx=00b76848 ecx=0148cf58 edx=0148a110 esi=016120f0 edi=0022f48c
eip=00000000 esp=0022f228 ebp=0022f244 iopl=0 nv up ei pl nz na pe nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00010202
Call stack:
00000000
015B1989 D:\Programme\CodeBlocks\share\codeblocks\plugins\wxsmith.dll:015B1989 GetSDKVersionMinor
0153CEDB D:\Programme\CodeBlocks\share\codeblocks\plugins\wxsmith.dll:0153CEDB GetSDKVersionMinor
0153D2E5 D:\Programme\CodeBlocks\share\codeblocks\plugins\wxsmith.dll:0153D2E5 GetSDKVersionMinor
100A77A8 D:\TOOLS\wxmsw26_gcc_cb.dll:100A77A8 _ZN12wxEvtHandler21ProcessEventIfMatchesERK21wxEventTableEntryBasePS_R7wxEvent
100A7B6C D:\TOOLS\wxmsw26_gcc_cb.dll:100A7B6C _ZN16wxEventHashTable11HandleEventER7wxEventP12wxEvtHandler
100A8B49 D:\TOOLS\wxmsw26_gcc_cb.dll:100A8B49 _ZN12wxEvtHandler12ProcessEventER7wxEvent
0152C086 D:\Programme\CodeBlocks\share\codeblocks\plugins\wxsmith.dll:0152C086 GetSDKVersionMinor
100A77A8 D:\TOOLS\wxmsw26_gcc_cb.dll:100A77A8 _ZN12wxEvtHandler21ProcessEventIfMatchesERK21wxEventTableEntryBasePS_R7wxEvent
100A7B6C D:\TOOLS\wxmsw26_gcc_cb.dll:100A7B6C _ZN16wxEventHashTable11HandleEventER7wxEventP12wxEvtHandler
100A8B49 D:\TOOLS\wxmsw26_gcc_cb.dll:100A8B49 _ZN12wxEvtHandler12ProcessEventER7wxEvent
01526297 D:\Programme\CodeBlocks\share\codeblocks\plugins\wxsmith.dll:01526297
01523596 D:\Programme\CodeBlocks\share\codeblocks\plugins\wxsmith.dll:01523596
01523068 D:\Programme\CodeBlocks\share\codeblocks\plugins\wxsmith.dll:01523068
100A77A8 D:\TOOLS\wxmsw26_gcc_cb.dll:100A77A8 _ZN12wxEvtHandler21ProcessEventIfMatchesERK21wxEventTableEntryBasePS_R7wxEvent
100A7B6C D:\TOOLS\wxmsw26_gcc_cb.dll:100A7B6C _ZN16wxEventHashTable11HandleEventER7wxEventP12wxEvtHandler
100A8B49 D:\TOOLS\wxmsw26_gcc_cb.dll:100A8B49 _ZN12wxEvtHandler12ProcessEventER7wxEvent
1010D7E6 D:\TOOLS\wxmsw26_gcc_cb.dll:1010D7E6 _ZN8wxWindow16HandleMouseEventEjiij
1010FF59 D:\TOOLS\wxmsw26_gcc_cb.dll:1010FF59 _ZN8wxWindow13MSWWindowProcEjjl
10108B20 D:\TOOLS\wxmsw26_gcc_cb.dll:10108B20 _Z9wxWndProcP6HWND__jjl@16
77D18734 C:\WINDOWS\system32\USER32.dll:77D18734 GetDC
77D18816 C:\WINDOWS\system32\USER32.dll:77D18816 GetDC
77D189CD C:\WINDOWS\system32\USER32.dll:77D189CD GetWindowLongW
77D196C7 C:\WINDOWS\system32\USER32.dll:77D196C7 DispatchMessageA
100E8515 D:\TOOLS\wxmsw26_gcc_cb.dll:100E8515 _ZN11wxEventLoop14ProcessMessageEP6tagMSG
100E8AE4 D:\TOOLS\wxmsw26_gcc_cb.dll:100E8AE4 _ZN11wxEventLoop8DispatchEv
100E8880 D:\TOOLS\wxmsw26_gcc_cb.dll:100E8880 _ZN11wxEventLoop3RunEv
101823DE D:\TOOLS\wxmsw26_gcc_cb.dll:101823DE _ZN9wxAppBase8MainLoopEv
004039AC D:\Programme\CodeBlocks\codeblocks.exe:004039AC
1004318F D:\TOOLS\wxmsw26_gcc_cb.dll:1004318F _Z14wxUninitializev
100B077C D:\TOOLS\wxmsw26_gcc_cb.dll:100B077C _Z7wxEntryP11HINSTANCE__S0_Pci
0040138A D:\Programme\CodeBlocks\codeblocks.exe:0040138A
0044669A D:\Programme\CodeBlocks\codeblocks.exe:0044669A
004011E7 D:\Programme\CodeBlocks\codeblocks.exe:004011E7
00401238 D:\Programme\CodeBlocks\codeblocks.exe:00401238
7C816D4F C:\WINDOWS\system32\kernel32.dll:7C816D4F RegisterWaitForInputIdle
--- End code ---
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version