Search found 122 matches

by michalm
Wed Sep 01, 2010 8:35 am
Forum: C++ Development
Topic: wxWidgets 2.9.1 - very large compiled files, VisualC++ 2010
Replies: 1
Views: 649

wxWidgets 2.9.1 - very large compiled files, VisualC++ 2010

Hello,

Simple comparision:
- wxWidgets 2.8.11, compiled exe size - ~1.5 MB (500 kB after upx)
- wxWidgets 2.9.1 - 3.3 MB, 1 MB after upx

Why 2.9.1 files are so large? Is there anything I can do to get smaller files? I need wx as static library and multithreated (not MT/DLL) for Visual C++ runtime.
by michalm
Sun Oct 11, 2009 11:01 pm
Forum: C++ Development
Topic: wxDialog::Hide from custom control dbClick event causes exit
Replies: 0
Views: 576

wxDialog::Hide from custom control dbClick event causes exit

Hello, The custom control is LCDWindows from here: http://wxcode.sourceforge.net/complist.php?compperpage=1000&viewmode=full&browseby=category&section=control&page=1 I have one LCD window on main dialog, and second LCD Window on other, modal dialog. When user double click on first lc...
by michalm
Fri Oct 09, 2009 8:12 pm
Forum: C++ Development
Topic: How to save wxDC contents to file?
Replies: 1
Views: 1026

How to save wxDC contents to file?

Hello,

I have my own control, derived from wxWindow. The control draws something, using OnPaint event. How to save this to image file?
by michalm
Fri Oct 09, 2009 10:59 am
Forum: C++ Development
Topic: Prevent more than one instance
Replies: 8
Views: 1822

Using CreateMutex and checking GetLastError value is better solution for Windows platform:

http://support.microsoft.com/kb/243953

There sholud be linux equivalent also.
by michalm
Wed Oct 07, 2009 9:49 am
Forum: C++ Development
Topic: wxGTK - tray icon transparency on KDE4
Replies: 3
Views: 1308

2.9.0 is already released. Is this issue fixed there? If not, there is no reason for me to upgrade, so I'd like to know...
by michalm
Tue Oct 06, 2009 10:33 pm
Forum: C++ Development
Topic: wxGTK - tray icon transparency on KDE4
Replies: 3
Views: 1308

wxGTK - tray icon transparency on KDE4

Hello,

How to prepare xpm image to make it transparent on KDE4 tray? For me, it always have a grey background - this look very ugly for some icons...

Is there any solution to make it transparent?
by michalm
Mon Oct 05, 2009 7:04 pm
Forum: C++ Development
Topic: wxGtk - wxDialog::Hide main window causes application exit?
Replies: 10
Views: 2410

Hi, Thnaks for response You create your dialog on the stack. It therefore loses scope at the end of tray_testApp::OnInit, which crashes the app next time the TaskbarIcon references pFrmMain. Do you mean I always should create main dialog on the heap? In Code::Blocks generated code main dialogs are a...
by michalm
Sun Oct 04, 2009 10:04 pm
Forum: C++ Development
Topic: wxGtk - wxDialog::Hide main window causes application exit?
Replies: 10
Views: 2410

Hello,

Ok, there is simple source in attachment. After user press button, main window should hide, but instead, application exits...
by michalm
Sun Oct 04, 2009 6:29 pm
Forum: C++ Development
Topic: wxGtk - wxDialog::Hide main window causes application exit?
Replies: 10
Views: 2410

#include "termometrApp.h" //(*AppHeaders #include "termometrMain.h" #include <wx/image.h> //*) IMPLEMENT_APP(termometrApp); bool termometrApp::OnInit() { //(*AppInitialize bool wxsOK = true; wxInitAllImageHandlers(); if ( wxsOK ) { termometrDialog Dlg(0); SetTopWindow(&Dlg);...
by michalm
Thu Oct 01, 2009 7:25 pm
Forum: C++ Development
Topic: wxGtk - wxDialog::Hide main window causes application exit?
Replies: 10
Views: 2410

Otherwise, perhaps you could pastebin some code that demonstrates the problem (preferably a diff to one of the samples) and post the link here. I mean I need tray icon. But this problem is not tray icon related... The problem is, why this code: void mainDlg::OnbuttonHideClick(wxCommandEvent& ev...
by michalm
Thu Oct 01, 2009 6:16 pm
Forum: C++ Development
Topic: wxGtk - wxDialog::Hide main window causes application exit?
Replies: 10
Views: 2410

wxGtk - wxDialog::Hide main window causes application exit?

Hello, wxGTK version 2.8.10, gtk2.0 version 2.18.0-1, Debian Sid. I need to hide main window without closing entire application and add tray icon. My problem is as follows - hiding main dialog (application is dialog based) causes program to close. How can I hide (not minimize) main window without pr...
by michalm
Tue Sep 29, 2009 8:08 pm
Forum: C++ Development
Topic: RS232 communication
Replies: 4
Views: 3222

There's wxCTB ... http://wxcode.sourceforge.net/showcomp.php?name=wxCtb Yes, I know it, but it seems to be too big and complicated, without any documentation (dead links)... and I was unable to compile it. I'm going to implement communication from scratch using open/write/read from C standard libra...
by michalm
Tue Sep 29, 2009 4:52 pm
Forum: C++ Development
Topic: RS232 communication
Replies: 4
Views: 3222

RS232 communication

Hello,

I need simple application listening on com port (linux). Is there any wx built in classes I can use to do this?
by michalm
Wed Jun 10, 2009 7:26 am
Forum: C++ Development
Topic: How to login to gmail account
Replies: 5
Views: 1592

There are some limitations with POP3. For example, it's not very easy to get subject only for all messages without downloading entire message (it's impossible if server don't support "TOP" command). When looging on web page, it's easy to parse message list directly from site. Another reaso...
by michalm
Tue Jun 09, 2009 6:49 pm
Forum: C++ Development
Topic: How to login to gmail account
Replies: 5
Views: 1592

Hello,

Sorry, I mean logging onto web page, not smtp/pop3 server. I know this quite simple using .NET, but have no idea how to use wxWidgets to do this?