User forums > Using Code::Blocks

About wxSmith and compiling on Linux

<< < (2/2)

kencamargo:

--- Quote from: nime1 on September 22, 2010, 04:20:44 pm ---OK, my wx in linux works good so I should make new project with same files to have similar program on both platforms? If this is all - not a big deal.

--- End quote ---

Yep. The compiling options are quite different on both systems. My suggestion is to do the heavy developing on your platform of choice, then create an empty wxWidgets project on the other and add the source files.

Or you could set your environment under linux for crosscompiling a win binary as well, there are detailed instructions for that at the wiki. I used to do this, but I started having odd problems with some of my code, that I didn't manage to solve.

If a cross-environment project could be exported this would be a huge help...


--- Quote ---And please, regarding wxSmith, how to get key and mouse events for text, combo, listboxes through them?
Or ansewer that this don't go will be also good if don't go.

--- End quote ---

I don't think I got this part.

Ken

nime1:
Hello Ken,
thank you for further clearance of cross-compiling.

wxSmith.
When I put panel on the new form under Resources tab of project management I get all provided properties for them and events on the list.
When I put f.e. textBox on this panel I get all provided propertyes but only few events TEXT, TEXT_ENTER, TEXT_URL and TEXT_MAXLEN. I would like to have keyDown, KeyUp, Dblclick, MouseOver and other usual events for such controls too.
But I haven't it listed in list of events.
It is the same at win and lin version.
Should I do something what I missed regard this?

kencamargo:

--- Quote from: nime1 on September 22, 2010, 05:26:04 pm ---Hello Ken,
thank you for further clearance of cross-compiling.

--- End quote ---
Always a pleasure.


--- Quote ---wxSmith.
When I put panel on the new form under Resources tab of project management I get all provided properties for them and events on the list.
When I put f.e. textBox on this panel I get all provided propertyes but only few events TEXT, TEXT_ENTER, TEXT_URL and TEXT_MAXLEN. I would like to have keyDown, KeyUp, Dblclick, MouseOver and other usual events for such controls too.
But I haven't it listed in list of events.
It is the same at win and lin version.
Should I do something what I missed regard this?

--- End quote ---

Not all available events are built into the wxSmith interface, but you can still call them. Look at the code that is generated by the IDE when you add a handler to a control, and try copying it for the events you want to use.

Ken

Jenna:
But if you add own code, do it outside the //(* ... //*) blocks, because the code between them is generated by wxSmith and all hand-made code will be overwritten if you change something in the wxsmith-file(s).

Navigation

[0] Message Index

[*] Previous page

Go to full version