Search found 7 matches

by Yggi
Thu Aug 18, 2011 4:20 pm
Forum: General Development
Topic: Zoom-Function for an image viewer
Replies: 1
Views: 1591

Zoom-Function for an image viewer

Hello. I'm currently working on an image viewer and I have a bit of trouble implementing a "good" zoom function. The User should be able to zoom into and out of the image using his mouse wheel. I have the following variables: - Image-Size - Visible Area - Scrollbar-Positions - Scale Factor...
by Yggi
Mon Feb 14, 2011 2:04 pm
Forum: C++ Development
Topic: wxImage could not load the attached JPEG file
Replies: 9
Views: 2667

Works also with wxWidgets 2.9.1. What kind of error is shown? Did you check if wxImage::IsOk() returns true? Did you call wxInitAllImageHandlers()? #include <wx/wx.h> #include <wx/generic/statbmpg.h> class App : public wxApp { public: bool OnInit(); }; wxIMPLEMENT_APP(App); bool App::OnInit() { wxIn...
by Yggi
Mon Feb 14, 2011 1:32 pm
Forum: C++ Development
Topic: balloon on a systray icon?
Replies: 3
Views: 2079

Yes, with

Code: Select all

wxTaskBarIcon::SetIcon(const wxIcon &icon, const wxString &tooltip=wxEmptyString)
by Yggi
Mon Feb 14, 2011 1:03 pm
Forum: C++ Development
Topic: I need advice on wxAuiManager
Replies: 3
Views: 927

You can have a Center Pane with Caption and Maximize/Minimize Buttons. Just remove the "CenterPane()"-Call from your wxAuiPaneInfo und call "Center()". Here's an example: main.h #ifndef MAIN_H #define MAIN_H #include <wx/wx.h> #include <wx/aui/aui.h> #include <wx/artprov.h> class...
by Yggi
Mon Feb 14, 2011 10:35 am
Forum: C++ Development
Topic: Problem with wxZlibOutputStream
Replies: 0
Views: 844

Problem with wxZlibOutputStream

Hello. I have a Problem with wxZlibOutputStream in combination with wxFileOutputStream and wxDataOutputStream. It seems like it does not write all data into the wxFileOutputStream. Here is an example of my problem: main.h #ifndef MAIN_H #define MAIN_H #include <wx/wx.h> #include <wx/wfstream.h> #inc...
by Yggi
Sat Jan 01, 2011 12:18 pm
Forum: C++ Development
Topic: MessageBox with "Don't show this message again" ch
Replies: 2
Views: 951

Yes,
thank you :D
by Yggi
Fri Dec 31, 2010 6:56 pm
Forum: C++ Development
Topic: MessageBox with "Don't show this message again" ch
Replies: 2
Views: 951

MessageBox with "Don't show this message again" ch

Hello.
Is there a simple way to create a MessageBox which displays a "Don't show this message again"-Checkbox (or similiar)?