Which framework or toolkit should i use? Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
extreme001
I live to help wx-kind
I live to help wx-kind
Posts: 192
Joined: Fri Dec 22, 2006 9:17 am
Location: Germany
Contact:

Which framework or toolkit should i use?

Post by extreme001 »

Good Evening!

I'm on the way to use wxWidgets in a commercial project. so far so good

1. Can i use wxWidgets without any restrictions?

2. Does wxWidgets support threads?

3. I want to draw in a window of a foreign application. Is it possible? Any OS? Any application type? MFC-Windows? Or Delhi?

4. I need a good database, cross platform and easy deploying. Is firebird the right database? If yes, which api should i use?

Thank you very much and excuse my bad english!
Auria
Site Admin
Site Admin
Posts: 6695
Joined: Thu Sep 28, 2006 12:23 am
Contact:

Post by Auria »

1. You can find the exact license here : http://www.wxwidgets.org/about/newlicen.htm. But as far as i know (though i'm no lawyer) wx can be (and has been) used in commercial applications.

2. Yes

3. Never heard of that. Maybe native code can do that. I guess it all depends on whether this foreign application expects to be painted on, and what means it offers to that end
protocol
Moderator
Moderator
Posts: 680
Joined: Wed Jan 18, 2006 6:13 pm
Location: Dallas, TX
Contact:

Post by protocol »

#1. Yes, pretty much
#2. Yes, of course, wxThread exists, and wxThreadHelper (GUI threading friendly)
#3. I don't understand that statement, "draw in a window of a foreign application"?
#4. I prefer and use SQLite with wxSqlite3

Search around to find out about #4?

Regards.
/* UIKit && wxWidgets 2.8 && Cocoa && .Net */
QuRegExmm
wxPCRE & ObjPCRE - Regex It!
manteez
Experienced Solver
Experienced Solver
Posts: 58
Joined: Fri Dec 07, 2007 7:54 am

Post by manteez »

I will cover for no 4 answer

4. Yes Firebird is one of a good choice. To connect it via c++
you can use IBPP http://www.ibpp.org or databaselayer
http://wxcode.sourceforge.net/components/databaselayer/

more detail, take a look at http://www.firebirdfaq.org/faq9/
extreme001
I live to help wx-kind
I live to help wx-kind
Posts: 192
Joined: Fri Dec 22, 2006 9:17 am
Location: Germany
Contact:

Post by extreme001 »

Well, thank you very much.

I mean i want to get a window e.g. "Notepad" by FindWindow and want to draw text on it, or symbols via the graphics context. Is it possible?

Thank you!
upCASE
Moderator
Moderator
Posts: 3176
Joined: Mon Aug 30, 2004 6:55 am
Location: Germany, Cologne

Post by upCASE »

Hi!
extreme001 wrote:I mean i want to get a window e.g. "Notepad" by FindWindow and want to draw text on it, or symbols via the graphics context. Is it possible?
If "draw text on it" really means a drawing action and not inserting the text, yes, it can be done.

But this won't be corss-platform in any way. You can use the native API however to achieve this. You can even use wxWidgets to do the drawing via wxDC by getting the HDC and then using the undocumented SetHDC() method.
OS: OpenSuSE, Ubuntu, Win XP Pro
wx: svn
Compiler: gcc 4.5.1, VC 2008, eVC 4

"If it was hard to write it should be hard to read..." - the unknown coder
"Try not! Do. Or do not. There is no try." - Yoda
extreme001
I live to help wx-kind
I live to help wx-kind
Posts: 192
Joined: Fri Dec 22, 2006 9:17 am
Location: Germany
Contact:

Post by extreme001 »

Thanks a lot. I will try it with some native apps...like Java-Apps, MFC-Apps an .NET-Apps. Painting in another window/foreign window is important.

But next time we can write in german, too :-)
pizzafroide
In need of some credit
In need of some credit
Posts: 3
Joined: Fri Sep 26, 2008 2:00 pm
Location: Toulouse, France

Post by pizzafroide »

Distributing wxWidgets in commercial applications is indeed possible (and rather easy) but there is some tricks to know if you want to do things really properly...
Have a look at this page for more info.
wxWidgets 2.8.7
Port wxMSW with Visual Studio .Net 2003
On Windows XP Pro SP3
extreme001
I live to help wx-kind
I live to help wx-kind
Posts: 192
Joined: Fri Dec 22, 2006 9:17 am
Location: Germany
Contact:

Post by extreme001 »

Thank you very much!
Post Reply