User forums > General (but related to Code::Blocks)
wxGenericStaticBitmap
BlueHazzard:
For me it was a klick on the custom control so that the properties are shown, then top of this property grid you can select the event tab and there was a EVT_PAINT handler. After selecting there "none" all worked for me....
spflanze:
I already had none for an event handler there. To test if something was out of synch I attempted to add an event handler that would be subsequently removed. But I got an error message box that said "Can't add event handler".
I added a new element to the form to be subsequently removed just to get Code::Blocks to refresh the managed code. This did not make a difference. And I found that I am not able to add event handlers for any new element I add to the form. I get the same error message.
Changes made to the form are not reflected in what I see when the program is run. It is as if it compiles from the wrong wxs file. I do not know where to look for which wxs file it uses. I know for sure the one I edit is the one attached to the project in the Management window.
BlueHazzard:
can you zip and upload the broken project?
spflanze:
Can be downloaded here:
http://www.mediafire.com/file/ba11q041m4cz6l5/TIA_Designer_Form_Synch.zip
I removed an empty wxStaticBitmap object above the schematic on the left side. But when I compile and run it that removed and empty wxStaticBitmap object is still there in the executable.
BlueHazzard:
you have completrly messed up your project file...
Do you have moved and or renamed source files?
wxSmith can not find the source and header files it has to work with. To fix this open the TIADesigner.cbp file with a text editor (notepad++ for example). Search for the part
--- Code: --- <wxsmith version="1">
<gui name="wxWidgets" src="TIAApp.cpp" main="TIAFrame" init_handlers="necessary" language="CPP" />
<resources>
<wxFrame wxs="wxsmith/TIAframe.wxs" src="TIAMain.cpp" hdr="TIAMain.h" fwddecl="0" i18n="1" name="TIAFrame" language="CPP" />
</resources>
</wxsmith>
--- End code ---
here you have to set all src and hdr attributes to valid source files. The attributes in the gui node is you application and the attributes in the wxFrame node is your frame. Save the file and open it in codeblocks. Add a button to the frame and remove it again, so that the code gets re generated...
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version