Search found 47 matches

by modoran
Mon Mar 03, 2014 5:49 pm
Forum: Platform Related Issues
Topic: ShowFullScreen problem on Windows 7
Replies: 3
Views: 2997

Re: ShowFullScreen problem on Windows 7

While waiting fow wxWidgets developers to fix this issue (if they ever will fix it) you can go with your own implementation based on winapi.

There is an StackOverflow question with an example how it is done in Chromium:
http://stackoverflow.com/questions/2382 ... ng-taskbar
by modoran
Thu Feb 13, 2014 5:32 pm
Forum: C++ Development
Topic: working with secure FTP using wxFTP
Replies: 3
Views: 1671

Re: working with secure FTP using wxFTP

+1 for libcurl, you should always use it and not even bother learning wxHTTP or wxFTP because these classes have much more limitations compared with libcurl which you will need sooner or later.
by modoran
Mon Feb 10, 2014 6:14 pm
Forum: C++ Development
Topic: wxQueueEvent and thread
Replies: 10
Views: 9151

Re: wxQueueEvent and thread

There it comes an example from a working project: header.h: wxDECLARE_EVENT ( wxEVT_COMMAND_MYTHREAD_UPDATE, wxThreadEvent ); class CProgressDialog : public ProgressDialog, public wxThreadHelper { public: /** Constructor */ CProgressDialog ( wxWindow* parent, wxConfig* cnfg, const wxArrayString&...
by modoran
Sun Feb 09, 2014 2:23 pm
Forum: Compiler / Linking / IDE Related
Topic: wxmsw30u_gcc48.dll missing from your computer
Replies: 8
Views: 6506

Re: wxmsw30u_gcc48.dll missing from your computer

In the same folder as EXE. Or build wxWidgets as a static library, that way no DLL will be required.
by modoran
Sun Feb 09, 2014 1:51 pm
Forum: Compiler / Linking / IDE Related
Topic: wxmsw30u_gcc48.dll missing from your computer
Replies: 8
Views: 6506

Re: wxmsw30u_gcc48.dll missing from your computer

If you run the EXE from inside IDE most likely the DLL will be found automatically.

Don't know about wxPack (don't use it), but if you compile wxWidgets yourself the DLL can be found in "C:\wxWidgets-3.0.0\lib\gcc_dll\" folder.
by modoran
Sun Feb 09, 2014 1:21 pm
Forum: Compiler / Linking / IDE Related
Topic: wxmsw30u_gcc48.dll missing from your computer
Replies: 8
Views: 6506

Re: wxmsw30u_gcc48.dll missing from your computer

The DLL must be in the same folder as your EXE or (NOT recommended) somewhere in %PATH%. The IDE can locate the DLL for you and be able to run your program from inside it, so nothing is dissapearing "over night". The exact location of the DLL only you can find where it is, nobody will down...
by modoran
Mon Feb 03, 2014 5:38 pm
Forum: Platform Related Issues
Topic: std streams open and wxString on Windows
Replies: 5
Views: 4609

Re: std streams open and wxString on Windows

Why don't you use wxString::ToStdWString().c_str() ?
http://docs.wxwidgets.org/trunk/classwx ... 2d2933d060
by modoran
Mon Feb 03, 2014 5:34 pm
Forum: Platform Related Issues
Topic: wxDialog with minimize/maximize button in linux
Replies: 5
Views: 3289

Re: wxDialog with minimize/maximize button in linux

The documentation for wxMiniFrame says that :
wxMINIMIZE_BOX:
Displays a minimize box on the frame (Windows and Motif only).
wxMAXIMIZE:
Displays the frame maximized (Windows only).
wxMAXIMIZE_BOX:
Displays a maximize box on the frame (Windows and Motif only).
So it is not a solution.
by modoran
Sat Feb 01, 2014 2:43 pm
Forum: C++ Development
Topic: Safely popping up a menu that acts as a submenu elsewhere
Replies: 2
Views: 2315

Re: Safely popping up a menu that acts as a submenu elsewher

Just use another wxMenu* on the heap using the same IDs as you used on menu attached to menu bar. The event handler will be exactly the same, no changes required.
by modoran
Sat Feb 01, 2014 8:10 am
Forum: C++ Development
Topic: Connecting a single event to a specific method in wxWidgets
Replies: 6
Views: 3169

Re: Connecting a single event to a specific method in wxWidg

For menu you need to use something like that: this->Connect( about->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrame::OnAbout ) ); here "about" is a wxMenuItem* which you used when you create the menu. You can use directly the ID like ID_MYCOMMAND instead, is the same...
by modoran
Mon May 06, 2013 5:44 pm
Forum: C++ Development
Topic: Zip files problem and general streams questions
Replies: 2
Views: 2667

Re: Zip files problem and general streams questions

To modify an existing archive, write a new copy of the archive to a new file, making any necessary changes along the way and transferring any unchanged entries using CopyEntry().

Please read documentation carefully, in-place modification is not supported.
http://docs.wxwidgets.org/2.8/wx_wxarc.html
by modoran
Wed Apr 10, 2013 3:43 pm
Forum: C++ Development
Topic: wxDataOutputStream question
Replies: 5
Views: 3217

Re: wxDataOutputStream question

by modoran
Tue Mar 12, 2013 5:19 pm
Forum: C++ Development
Topic: how to set Dialog Caption
Replies: 6
Views: 3175

Re: how to set Dialog Caption

I think he means "dialog title". However, there is no way to align the text into different positions, unless you calculate window size, character width anf fill with empty spaces.
by modoran
Tue Mar 12, 2013 5:13 pm
Forum: C++ Development
Topic: wxWindows always on top
Replies: 3
Views: 4866

Re: wxWindows always on top

If there is no wxWidgets way to do it, get the native GTK handle and use it directly (not tested):
http://www.gtk.org/api/2.6/gtk/GtkWindo ... keep-above

If you are interested, I can provide you a windows solution too.
by modoran
Sat Feb 23, 2013 7:59 am
Forum: C++ Development
Topic: Getting error while using registry.h
Replies: 1
Views: 1256

Re: Getting error while using registry.h

Please post your exact code, as just #including <wx/msw/registry.h> and trying to use wxRegKey class works for me. Does your project "works" without using wxRegKey class ? It is more likely a project misconfiguration. Are you using wxRegKey class inside a class method ? (this is a general ...