Search found 211 matches

by Frank
Sat Sep 06, 2008 6:43 pm
Forum: General Development
Topic: passing data between wxDialogs forms
Replies: 5
Views: 1676

> it is better with wxWidgets classes and those derived from wxWidgets classes to use wxDynamicCast. Why? Normally I use boost::dynamic_cast, wich throws an exception instead of returning null. Never had any problems with it. What can happen if I don't use wxDynamicCast? I thought it was just a gre...
by Frank
Sat Sep 06, 2008 6:53 am
Forum: General Development
Topic: passing data between wxDialogs forms
Replies: 5
Views: 1676

Your form_a Pointer ist not initialized. When it points to the actual dialog it should work. Like so: void formB::Onbtn_okClick (wxCommandEvent& event) { formA *form_a = dynamic_cast<formA*>(GetParent()); //Now form_a points to your Parent, not into nirvana. form_a->SetValueTextBoxA(TextCtrl1->GetVa...
by Frank
Thu Sep 04, 2008 8:06 am
Forum: C++ Development
Topic: Need Compromise: wxMenu - wxFrame - wxDialog & Modality
Replies: 13
Views: 6831

MakeModal() has no message loop. It returns imediateley.

And sorry, but I'm not interested in your's or appels point of view on GUI design. All I'm interested in is what my users want.
by Frank
Wed Sep 03, 2008 8:54 am
Forum: General Development
Topic: what do people think of a select like function in wx
Replies: 4
Views: 1282

Currently I'm using my own classes.

When I need Sockets for a future project, I think I go with boost::asio.

Windows Sockets are just the same as BSD-Socekts. You don't have to use the Windows-Only-Functions. There are the BSD-Functions too.
by Frank
Tue Sep 02, 2008 2:59 pm
Forum: General Development
Topic: Ubiquity of wxWidgets baseline App + Main Frame model
Replies: 2
Views: 721

No, it's not. The Toolkit I used before had a different design.

No equavilent of wxApp. No Toplevel-Frame (program ends when the last frame is closed).

You simply write a good old main. The Message-Loop is just a function-call.
by Frank
Tue Sep 02, 2008 2:54 pm
Forum: General Development
Topic: what do people think of a select like function in wx
Replies: 4
Views: 1282

I don't use wxSockets at all. There are better solutions out there...

I voted for the third option.
by Frank
Wed Aug 27, 2008 9:35 pm
Forum: C++ Development
Topic: Need Compromise: wxMenu - wxFrame - wxDialog & Modality
Replies: 13
Views: 6831

Thanks John, that looks really good. I'll try it tommorrow at work with our window. I don't remember what our hack was, it's been some time. The only thing I remember was all the swearing... But it dit not had an own message loop. If I remember right, it had an endless loop wich called wxYield() eve...
by Frank
Tue Aug 26, 2008 9:13 pm
Forum: C++ Development
Topic: Need Compromise: wxMenu - wxFrame - wxDialog & Modality
Replies: 13
Views: 6831

I don't even understand why there is wxFrame and wxDialog. Just make a wxFrame::ShowModal and wxFrame::EndModal() and nobody needs wxDialog anymore. That is what the OCL did, the Framework I used before wx. That was the only problem when porting our app to wx. We have one modal window in our applica...
by Frank
Sun Aug 24, 2008 12:53 pm
Forum: C++ Development
Topic: Save changes in Childfrm
Replies: 2
Views: 545

I seperate my data from my gui. That way I have a own class for the data (wich also loads/saves the data). Say I have a dialog wich asks for two values, named value1 and value2, my Data-Class could look like this: class SomeData { std::string value1; int value2; bool changed; public: SomeData () : c...
by Frank
Thu Aug 21, 2008 10:09 am
Forum: General Development
Topic: Attractive graph/chart library? Does it exist?
Replies: 6
Views: 1743

But the price is royalty free. I find that way better than a licensing model, where you have to pay for every installation for your program.

We're using ChartDirector too. Never regretted it. It's stable, fast, easy to use and has C++ classes.
by Frank
Tue Aug 12, 2008 7:42 pm
Forum: C++ Development
Topic: Threads and Gui (and multiple inheritance)
Replies: 9
Views: 1809

When I write a worker-thread for a frame, I make that worker thread a private memberfunction of that same frame. So, if I had to use wxThread, I would derive from wxFrame, wxThread. Like the original poster did. In the framework I used before (IBM's OCL), even the events were beeing derived from. So...
by Frank
Tue Aug 12, 2008 3:23 pm
Forum: C++ Development
Topic: Threads and Gui (and multiple inheritance)
Replies: 9
Views: 1809

I heard that a thoudand times. Never understood what the bad thing about multiple inheritance is.

If your're using a class like boost::thread, okay. No multiple inheritance needed there. But when a thread class is designed like wxThread, it seems stupid to mee not to use multiple inheritance.
by Frank
Mon Aug 11, 2008 10:42 am
Forum: C++ Development
Topic: How to write cumstom Event for WM_USER
Replies: 2
Views: 764

Wow, never thought of that.
by Frank
Fri Aug 08, 2008 8:31 pm
Forum: C++ Development
Topic: How to write cumstom Event for WM_USER
Replies: 2
Views: 764

How to write cumstom Event for WM_USER

Hi, I wan't to write a custom event for a WM_USER + x Windows-Message. I know I can do it by overwriting wxWindow::MSWWindowProc, but because I need to handle this event in many windows, and I don't want to do the same code multiple (really many) times, I wan't to implement it as own event. But how?...
by Frank
Tue Aug 05, 2008 11:19 pm
Forum: C++ Development
Topic: App hangs after wxApp::OnInit() returns false
Replies: 5
Views: 1091

Hi,

No I have no real reason to stay with 2.8.3. Just Time-Constraints.

After the next release of our proejct I will update. Okay, I planned that before the last release too. And the release before that. Well, next time I'll do it ;-)

Greetings
Frank