Search found 211 matches

by Frank
Sun Apr 05, 2009 10:14 am
Forum: Announcements and Discoveries
Topic: wxPgs and wxOra
Replies: 3
Views: 1342

What for? There are enough Database-Libraries out there. Why this unnesseary binding of Non-GUI Libraries to a GUI-Toolkit?

Heck in my own Database-Lib (for DB2) I explicitly made sure that there is no dependence on WX whatsoever.
by Frank
Thu Mar 26, 2009 12:17 am
Forum: C++ Development
Topic: wxRichTextCtrl not showing rich text?
Replies: 9
Views: 1501

Even though the control has the name wxRichTextCtrl, it does not understand the Rich Text Format.

It uses it's own format.
by Frank
Fri Mar 20, 2009 8:51 pm
Forum: General Development
Topic: wxMenu looks bad
Replies: 6
Views: 1649

Re: wxMenu looks bad

computerquip wrote: People don't complain about it because it's not what they get from wxWidgets. Could you show us a picture and possible the way your compiling your file?
That's not true.

I see the exact same problem. Add a bitmap to a menu and it looks like stoneage (wxMSW 2.8.9, VC2008, Vista X64 with Fixpack1).
by Frank
Thu Mar 19, 2009 12:14 pm
Forum: C++ Development
Topic: Why virtual bool OnInit()? Why virtual?
Replies: 13
Views: 1310

A function that is declared as virtual is always virtual. In every derived class. whether you explicitly write "virtual" in your derived class or not.

So if you need a "virtual" to remind you, that this function is virtual use it. If not, don't. Makes no difference.
by Frank
Sun Mar 08, 2009 3:38 pm
Forum: General Development
Topic: How to check a detached thread.
Replies: 3
Views: 1023

Take a bool and set it to true as the last action in the thread.

Then, you can just check this bool.
by Frank
Thu Mar 05, 2009 1:31 pm
Forum: C++ Development
Topic: How to check if a window is valid?
Replies: 8
Views: 1560

I've written my own dialog class, from wich I derive the Non-Modal Dialogs. This class connects a wxEVT_DESTROY to the to-be-notified window, so it can set the pointer to 0, when it gets destroyed. Also, I just can make a member PostData (const boost::any&), without any need for the derived class to...
by Frank
Thu Mar 05, 2009 12:33 am
Forum: C++ Development
Topic: How to check if a window is valid?
Replies: 8
Views: 1560

Thanks, I take a closer look into these. The ID-Thingy seems to be the esiest way to do this. I look into it tommorow.
by Frank
Thu Mar 05, 2009 12:24 am
Forum: General Development
Topic: gui is ugly on linux
Replies: 8
Views: 2151

Yep, I would.

If a programmer is not able to do a decent gui I suspect the rest of the program is as botched as the gui.
by Frank
Wed Mar 04, 2009 10:46 pm
Forum: C++ Development
Topic: How to check if a window is valid?
Replies: 8
Views: 1560

Unluckily, most of my windows are created with wxID_ANY, so I can't use the ID. And since half of the pointee's are wxPanels in a notebook (sort of), I can't use the name either. The other half are TopLevel windows, but sadly there is no wxWindow wich holds HWND_DESKTOP, so I also can't use wxWindow...
by Frank
Wed Mar 04, 2009 10:13 pm
Forum: C++ Development
Topic: How to check if a window is valid?
Replies: 8
Views: 1560

How to check if a window is valid?

Hi, I have a function that gets a wxWindow*. I need to test if the pointee is sill a valid window. Because it can happen that the window is closed by the user between saving the window pointer and calling AddPendingEvent() for this window. Or in Short: I need a wx equavilent for the WinAPI IsWindow(...
by Frank
Wed Mar 04, 2009 12:19 pm
Forum: C++ Development
Topic: hidden commandline-tool
Replies: 3
Views: 899

If you use wxExecute/wxProcess you can supress the Console-Window. Wx hides it, when you redirect input and output.
by Frank
Tue Mar 03, 2009 6:49 pm
Forum: C++ Development
Topic: Verification of wxThread flow
Replies: 2
Views: 528

wxThread does not automatically inform the main thread when it's done.

You must do it yourself (via wxPostEvent).

Your Thread-Function (-> wxThread::Entry()) can call all functions, but there are many problems when using GUI-Functions from a backgroundthread. So better don't use GUI at all.
by Frank
Sat Feb 28, 2009 3:41 pm
Forum: C++ Development
Topic: ProgressBar and vista??
Replies: 2
Views: 737

This is a Bug (or Want-To-Be-Feature) of Vista.

If you disable the Animations for Controls you get the expected result.
by Frank
Fri Feb 27, 2009 5:05 pm
Forum: General Development
Topic: gui is ugly on linux
Replies: 8
Views: 2151

I do.

We have 2009, not 1970...
by Frank
Fri Feb 27, 2009 5:00 pm
Forum: C++ Development
Topic: Multiple wxFrames and modal wxDialog issue
Replies: 7
Views: 1418

No, that's only wx's defnition of Modal. In WinAPI and other toolkits I used before, modal has the normal meaning: Modal to it's parent. But wx is doing some stange stuff, so sadly, this is how it "works" in wx. In my book, this is a bug in wx, because when all others doing it right, and your the on...