News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

wxSmith development

Started by byo, May 26, 2005, 02:38:44 AM

Previous topic - Next topic

cyberkoa

Quote from: rickg22cyberkoa: Remember that in TortoiseCVS you can "update special", and pick a specific TAG (C::B version) to use. It's better if you work on the 1.0beta-final, so at least we can be sure that it's not C::B source code that's causing the problems. (OH - and delete all the plugin dlls from both the devel and output subdirectories).
I already manage to compile in the my company's PC and run CB properly after getting the hints from madrav that need to run update.bat after finish compiling .

I am now trying at my Laptop .. hopefully everything is ok.

rickg22

Perhaps we should make a wiki article about compiling codeblocks for windows :)

tiwag

i just compiled wxsmith using wxWidgets 2.6.0 dll's
and tried to run it with my build of C::B, which uses wxWidgets 2.4.2 dll's,
and C::B crashes during start, when i remove the wxsmith addin, C::B starts normal.

Can someone confirm this behaviour plz ?
i'm not shure, if it's necessary to build C::B using wx260 in order to run wxsmith ?

thanks,
tiwag

byo

You must compile both C::B and wxSmith with same version of wxWidgets. Currently I'm using wx 2.4 and I don't know if it will work properly uunder wx 2.6

byo

Got one question - If i've added new Event Handler through wxWindow::PushEventHandler function it is not deletet automatically when widget is. Tried to do it through EVT_CLOSE but this is not generated for widgets. Any idea how to do it automatically ? Maybe creating one global event handler for all widgets but in such case there woul be need to create mapping wxWindow -> wxsWidget ans I think it's not a good Idea. Additional handler can also be removed while deleting preview but it may cause some realy bad errors

mandrav

You may want to look at wxWindow::RemoveEventHandler() and use it in the widget's dtor...

Yiannis.
Be patient!
This bug will be fixed soon...

tiwag

Quote from: byoYou must compile both C::B and wxSmith with same version of wxWidgets. Currently I'm using wx 2.4 and I don't know if it will work properly uunder wx 2.6

Thanks for the info,
OK i'll try it with the newest cvs version to compile with wx242,
the one version i got from cvs a few days ago wasn't able to compile with wx242,
a few methods only available in wx260 had been used, if i remember correctly.

--tiwag

[edit]
to make a long story short:
fresh download from cvs,
built wxsmith with wx242,
updated codeblocks build,
it runs without issues,
now i have to find out how it works ... ;-)

mandrav

byo, just a note until I write a proper "developer's guide"  :oops:

When you 're using event handlers for C::B generated events (like EVT_PROJECT_OPEN, etc) always call event.Skip() on the event object. It seems that you don't do this now and when I load the wxSmith plugin, most event handlers in the event handling chain don't see those events.

Yiannis.
Be patient!
This bug will be fixed soon...

byo

Quote from: mandrav
When you 're using event handlers for C::B generated events (like EVT_PROJECT_OPEN, etc) always call event.Skip() on the event object.

:oops: Didn't noticed that. Will fix soon (just need to fix incompatibilities with new eeditor system :) )

mandrav

No problem. It's my fault anyway:
Quotejust a note until I write a proper "developer's guide"

Quotejust need to fix incompatibilities with new eeditor system
Did you see it? Any comments?

Yiannis.
Be patient!
This bug will be fixed soon...

byo


mandrav

You do that and will get them fixed ;)

Yiannis.
Be patient!
This bug will be fixed soon...

cyberkoa

Quote from: DreadNotOK!  So now that I've got everything compiling (for now & until a new CVS), how do I make a really cool 8) screenshot of the C::B running the wxSmith plugin?  When I ran it, all I got was blank screens.
1. I created a wxWidgets project, but nothing shows (blank) in the Project tree (disturbing).
2. Nothing in Symbols and Watches.
3. I see the Resource tab with Property and Events tabs.  The top has "Resources->wxWidgets application".  Properties and Events are blank.
4. I see the Widgets tab at the bottom of the screen and it displays the basics.
Now what?

I also have the CB compiled and wxSmith compiled.

CB using   : 1.0 beta-final
CB source : from CVS (still in MDI interface , verson on 26May2005)
wxwidgets version : 2.4.2

When I run the compiled version CB , I have the same sympthon as Deadnot

As byo mentioned , there is still no function to create a new wxSmith project.

So , I open WxSmith.cbp , and I and get the same screenshot as Deadnot.

I have 1 question , under the Watch Tab , there is not symbols.
However, if I use the CB 1.0beta-final (the one I use to compile CB) , I open wxSmith.cbp . there are symbols under Watch .

Any idea ? Anyway , I just curious only.  I put more attention to the wxSmith source code study .

byo

Quote from: cyberkoa
I have 1 question , under the Watch Tab , there is not symbols.
However, if I use the CB 1.0beta-final (the one I use to compile CB) , I open wxSmith.cbp . there are symbols under Watch .

Any idea ? Anyway , I just curious only.  I put more attention to the wxSmith source code study .

Hmm, I don't have any watches. Can You post here their names ? Maybe I've addeed something to wrong tree ;)

byo

By the way - I've updated to wxNotebook interface - it should be available in anonymous cvs in few hours