Search found 211 matches

by Frank
Sun Jun 10, 2007 11:51 am
Forum: C++ Development
Topic: Blinking text
Replies: 2
Views: 838

You can take a normal Static Text. Create a timer to periodically change the color via wxStaticText::SetForegroundColour
by Frank
Sun May 27, 2007 1:07 pm
Forum: C++ Development
Topic: Bold brace in wxStyledTextCtrl
Replies: 3
Views: 801

It's not that easy :( Her is my code. This works. I found it some time ago on the net, but I cant find the link anymore. void PageAbfrage::OnUpdateUI (wxStyledTextEvent& event) { int p = m_mle->GetCurrentPos(); int c1 = m_mle->GetCharAt(p); int c2 = (p > 1 ? m_mle->GetCharAt(p-1) : 0); if (c2=='...
by Frank
Wed May 16, 2007 9:14 am
Forum: C++ Development
Topic: Where intercept all the exceptions throwed in the applicatio
Replies: 8
Views: 1525

Is your class derived from wxApp? Is your App a GUI-APP?

I'm using this code myself to catch unhandled exceptions and it works just fine.
by Frank
Tue May 15, 2007 5:24 pm
Forum: C++ Development
Topic: Where intercept all the exceptions throwed in the applicatio
Replies: 8
Views: 1525

Overwrite wxApp::OnRun(). Additionally overwrite wxApp::OnExceptionInMainLoop() Since OnExceptionInMainLoop() is useless, because the type of the execption is unknown, just throw it again. Like so: bool MyApp::OnExceptionInMainLoop() { throw; } int MyApp::OnRun() { try { wxApp::OnRun(); } catch (std...
by Frank
Sat May 05, 2007 3:03 pm
Forum: C++ Development
Topic: what control is this? does it exist in wx?
Replies: 6
Views: 1882

Because that list-control ignores the Windows-Theme (not only for the progressbar, the titles too), I would say it is completely self-written, not just the default-control with ownerdrawn columns.
by Frank
Thu Mar 22, 2007 11:28 am
Forum: General Development
Topic: lua to exe?
Replies: 1
Views: 831

It's not supportet by Lua itself.

You can only compile Lua to bytecode.

But you can make it yourself. Just like an self excracting archive, which is the decompressort with the archive attached. You can make a Lua-Interpreter with the bytecode attached.
by Frank
Fri Mar 16, 2007 9:57 pm
Forum: Compiler / Linking / IDE Related
Topic: Linking Problems with Monolithic DLL (Symbols already define
Replies: 0
Views: 509

Linking Problems with Monolithic DLL (Symbols already define

Hi, I'm trying to build a DLL wich is using wxWidgets. WX is built as Monolithic DLL. I'm Getting Linking-Errors because of std::vector<int>: 1>wxmsw28DLL.lib(wxmsw28DLL_vc_GD.dll) : error LNK2005: "public: __thiscall std::vector<int,class std::allocator<int> >::~vector<int,class std::allocator...
by Frank
Fri Mar 16, 2007 2:13 pm
Forum: C++ Development
Topic: wxString memory usage question
Replies: 8
Views: 2083

I think it's your CRT. Most compilers I know are using some sort of memory management wich does not releases the memory back to the operating system. Instead they reusing it for later use. All compilers I had to do with had a Non-Ansi-Function to give the free memory back to the system. They have na...
by Frank
Fri Mar 16, 2007 11:22 am
Forum: General Development
Topic: Text for 4ms
Replies: 3
Views: 779

Also, if your Monitor has 100 Hz, it refreshes 100 times per second. That means every Frame is visible for 10 ms. If you display your text in the top half of your monitor and the electronic beam, wich builds your picture, is below that point, your text will never be visible, because the next time th...
by Frank
Mon Mar 12, 2007 1:27 pm
Forum: C++ Development
Topic: About Microsoft Office Excel(.xls) files
Replies: 6
Views: 1547

Also, you can use ODBC to read and write Excel-Files. Does not need an excel installation and the Excel-ODBC-Driver is installed on every Windows-Box.

Never tried it with the WX-Database classes, but with my own ODBC-Classes it's just a connect and a SELECT to read an excel file.
by Frank
Thu Mar 08, 2007 9:58 am
Forum: Announcements and Discoveries
Topic: Build Version Incrementor
Replies: 2
Views: 839

Personally, I use a simple Lua-Script to do that. It takes the revision number from Subversion and writes it as #define in a Header. This way, I can take that revision number from the about box, check out that revision from subversion and have the source for exact the same version. Maybe it's an ide...
by Frank
Tue Feb 27, 2007 9:29 pm
Forum: General Development
Topic: Which Windows Message matches which wxWidgets event macro?
Replies: 4
Views: 1181

You can ovewrite the window-procedure wich gets the original messages: WXLRESULT MyWindow::MSWWindowProc (WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam) { switch (nMsg) { case WM_WHATEVER: doSomething(); break; case ... } return wxControl::MSWWindowProc(nMsg, wParam, lParam); } This snippet is from ...
by Frank
Mon Jan 01, 2007 8:29 pm
Forum: Open Discussion
Topic: The New Year 2007 - Thread!
Replies: 4
Views: 1148

I spent new year night at home too, because this was the first new year for my dog. I did not know how he reacts to fireworks, so I did not wanted to leave him alone. At midnight a friend knocked on my door. Crying. Her son died that day. He was only fifteen. One second he was fine and had fun with ...
by Frank
Thu Nov 16, 2006 11:38 pm
Forum: General Development
Topic: Exception handling
Replies: 3
Views: 861

Division by Zero is an Hardware Exception, not a C++ Exception. You can't catch Hardware-Exceptions (Okay, you can, at least if your're using Visual Studio, you can write a Handler to catch those). The only exceptions you can catch are C++ exceptions. This means you can only catch exceptions that ar...
by Frank
Wed Nov 15, 2006 9:24 am
Forum: General Development
Topic: When wxWidgets will become a real C++ toolkit?
Replies: 14
Views: 4034

Hmmm, we have 2006, not 1995. It was okay back then. But today I find it only ugly and counterintuitive. BUT: I can Compile wx with the Flag wxUSE_STL (or so). So my WX uses the STL for Strings and Arrays. That way I can use std::string in my programms and give those strings to wx-Functions, without...