Search found 211 matches

by Frank
Wed Mar 26, 2008 2:51 pm
Forum: C++ Development
Topic: Text Validation on Copy/Past
Replies: 8
Views: 1714

One can Paste with Shift+Insert too. At least on Windows. Also you can paste via rightclick + contextmenu. So it's... dumb... that you have to handle Key-Events yourself. What is the purpose of Validators then? But even then you can't catch all posiblilities to dissallow pasting of unwanted characte...
by Frank
Wed Feb 06, 2008 4:13 pm
Forum: C++ Development
Topic: question regarding binary size
Replies: 8
Views: 844

If your're using a decent Linker, it will not include unused references in your executable. It's an option normally (For VC++ /OPT:REF when I remember right).

Of course, the compiler must compile the code anyway.
by Frank
Wed Feb 06, 2008 12:03 am
Forum: General Development
Topic: report tools, PDF generation
Replies: 2
Views: 814

I use wxPdfDocument from Ulrich Telle for my PDF-Generation.

I'm using it in a commercial app with tousands of clients to generate reports on a central server. Works perfekt, never had any issues.
by Frank
Tue Feb 05, 2008 11:54 pm
Forum: General Development
Topic: I can crash Microsoft Visual Studio Express's compiler
Replies: 5
Views: 953

Visual C++ is a software, and like any other software it has bugs. I can crash the compiler too. With perfect legal code. Like for exapmle a call to boost::bind(), wich works perfect at hunred of files. But I have this one cpp file, where it crashes the compiler. As for the destructor call: from a c...
by Frank
Mon Feb 04, 2008 9:24 am
Forum: Component Writing
Topic: Variable Arguments
Replies: 1
Views: 753

No. va_list is your only choice.

With c++0x (the next C++ standard) comes "Variadic Templates", a way for variable templates.
by Frank
Fri Feb 01, 2008 11:02 am
Forum: C++ Development
Topic: searching on file text, what is the best strategy
Replies: 2
Views: 605

Have you looked a SQLite? It's a lib, you can link it to your program. No installation requiered.

There is a wx wrapper as well (wxSQLite3 I think).
by Frank
Tue Jan 29, 2008 9:46 pm
Forum: General Development
Topic: dialogblocks vs wxFormBuilder
Replies: 4
Views: 1521

They are both great, but they have different aproaches. DialogBlocks creates a class for every dialg/window, in wich you have to insert you own code. It uses comments to find it's generated code, so you have to be very careful not to write code between those comments, or it's gone when your change y...
by Frank
Thu Jan 17, 2008 11:37 pm
Forum: C++ Development
Topic: ShowModal() weirdness
Replies: 7
Views: 1157

I think your problem is that you create your dialg before your message-loop is running. The message-loop begins only after your wxApp::OnInit() returns true. So I think you create your Frame in your OnInit() and in there on your OnCreate() you create your dialog. When I remember right (from my OS/2-...
by Frank
Mon Jan 14, 2008 3:47 am
Forum: C++ Development
Topic: Get Events without subclassing?
Replies: 0
Views: 306

Get Events without subclassing?

Hi, I need to get some events (the original Windows-Events, WM_...), for wich wx has no event-class. The problem is, I can't subclass the widgets, they are created from plugins, not by myself. When I subclass a widget I can overwrite MSWWindowProc(). For normal Events I can connect() my Event-Handle...
by Frank
Mon Jan 07, 2008 10:41 pm
Forum: C++ Development
Topic: Non-blocking wxMutex::Lock()
Replies: 3
Views: 805

You're on Windows?

I don't know about Unix, but on windows, the lock is per thread. When your Thread has the lock, subsequent locks on the same thread will never wait.
by Frank
Tue Nov 27, 2007 7:34 pm
Forum: C++ Development
Topic: How to avoid getting focus?
Replies: 3
Views: 962

That works :)

At least on Windows, wich is good enough for now.

Thank you
Frank
by Frank
Tue Nov 27, 2007 4:56 pm
Forum: C++ Development
Topic: How to avoid getting focus?
Replies: 3
Views: 962

How to avoid getting focus?

Hi, I'm writing a Notification-Window (like Thunderbirds "You have new Mail" Thingy). My Problem is, as soon as I call Show() on the Window, it steals the focus. I don't want it to disturb the User in his work, so it should only display it's message for a few seconds and disapear. The window is a si...
by Frank
Tue Jul 10, 2007 10:44 am
Forum: Component Writing
Topic: Animation Control
Replies: 4
Views: 1640

Yes, I know. The Animations came in GIF with my Visual Studio, so I already have them in GIF-Form. But I don't want to bloat my app with Ressources that are already part of the OS. So I'll just load the AVI-Ressources from Shell32.dll, wich is a one-liner with the native control. Also I want to play...
by Frank
Tue Jul 10, 2007 9:24 am
Forum: Component Writing
Topic: Animation Control
Replies: 4
Views: 1640

Thanks, but that is a little bit oversized :) I just wan't to play that little animations, that are part of windows. You know, when you copy a file, the flying documents etc. Windows has a native Control exactly for that. So I thougt, before I wrap it myself, I ask if someone have already done it. N...
by Frank
Tue Jul 10, 2007 7:49 am
Forum: Component Writing
Topic: Animation Control
Replies: 4
Views: 1640

Animation Control

Hi,

is there a wxWidget-Component that wraps the native Windows Animation Control? I see there is a wxAnimationCtrl, but that does not seem to be able to play AVI's (I want to load the windows-default animation ressources from Shell32.dll, wich are in AVI Format)

Thanks
Frank