Search found 430 matches

by xaviou
Fri Sep 01, 2006 11:10 pm
Forum: C++ Development
Topic: Best practice for wxWizard button enable/disable?
Replies: 2
Views: 835

Hello. I think it would be better to simply Enable/Disable the "Next"button. To do this, add a EVT_WIZARD_PAGE_CHANGED to your wizard class. when the specified page is shown, just do this: wxWindow* NextButton=FindWindowById(wxID_FORWARD,this); if (NextButton!=NULL) NextButton->Enable(false); When t...
by xaviou
Thu Aug 31, 2006 7:48 pm
Forum: C++ Development
Topic: example for wxPathList
Replies: 1
Views: 558

Hi. Here is a small example : it just parses the $PATH variable, and get all entries. Note that with wx2.6.3, wxPathList is derived from wxList. Stil wx2.7.0, wxPathList is derived from wxArrayString Hope it will help you ! wxPathList plst; plst.AddEnvList(_T("PATH")); int i; wxString sResult=_T("Pa...
by xaviou
Wed Aug 30, 2006 8:56 pm
Forum: Compiler / Linking / IDE Related
Topic: Lots of warnings while compiling with MinGW32
Replies: 2
Views: 657

Hi

I re-tryed compiling libs, using MSYS (with the same version of gcc) and... no warnings !

Isn't it strange ?
by xaviou
Wed Aug 30, 2006 8:49 pm
Forum: C++ Development
Topic: Safe window identifier...
Replies: 4
Views: 779

Hi Juste to give you a small precision : the following is coming from wxWidgets doc (see wxID index's topic) : The automatically generated identifiers are always negative and so will never conflict with the user-specified identifiers which must be always positive So, don't worry about automatically ...
by xaviou
Sat Aug 26, 2006 11:49 am
Forum: Compiler / Linking / IDE Related
Topic: Lots of warnings while compiling with MinGW32
Replies: 2
Views: 657

Lots of warnings while compiling with MinGW32

Hi. I tryed to recompile wx27 libs directly with MinGW32 3.4.2. I didn't modify any option in "setup.h" When compiling for Static libs, everything is OK. When compiling for shared libs, I have a lot of warnigs like: In file included from ../../include/wx/memory.h:16, from ../../include/wx/object.h:2...
by xaviou
Thu Aug 24, 2006 6:33 am
Forum: C++ Development
Topic: Creating a wxFrame in a DLL
Replies: 8
Views: 2066

Sharkie: Hello. I'm sorry, but I made this "for fun". Programming isn't my job. And the base idea used in this tuto is not mine : I juste found an example that I've simplified. The original idea can be found here: http://bzzt.net/~wxwidgets/PluginExample.zip If you've downloaded the source code of m...
by xaviou
Tue Aug 22, 2006 9:18 pm
Forum: C++ Development
Topic: Creating a wxFrame in a DLL
Replies: 8
Views: 2066

Hello. I recently made a small tuto for creating a dll plugin application: I first create the wxFrame in the exe, and add some wxpanels from one or more dll (a plugins system) The tuto is in french, but perhaps it can help you You can find it here : http://www.wxdevelop.com/tuto=FAIRE_UNE_INTERFACE_...
by xaviou
Tue Aug 22, 2006 8:42 pm
Forum: C++ Development
Topic: Putting .ico icons on a wxToolBar
Replies: 1
Views: 701

You can try it yourself: icon.LoadFile("IconSave", wxBITMAP_TYPE_ICO_RESOURCE); bitmap.CopyFromIcon(icon); bitmap.SaveFile("icon.xpm",wxBITMAP_TYPE_XPM); Don't forget the wxImage::InitAllImageHandlers() for it to work. You can also try a free program called XPM Convert You can find it here : http://...
by xaviou
Mon Aug 21, 2006 4:16 pm
Forum: Platform Related Issues
Topic: ReturnCode of a wxDialog (linux problem)
Replies: 2
Views: 958

Hi
That's ok with EndModal(...)

I don't know why, but I was sure that EndModal() was destroying the wxDialog, and I want it to stay hidden only.
But it does not, so, that's fine.

Thanks a lot.
by xaviou
Mon Aug 21, 2006 3:29 pm
Forum: Platform Related Issues
Topic: ReturnCode of a wxDialog (linux problem)
Replies: 2
Views: 958

ReturnCode of a wxDialog (linux problem)

Hi I have a problem on using a wxDialog derived class: I've created a small dialog witch is showing a few buttons. When I click on a button, it makes a SetReturnCode(...) and the, hides the dialog. void MyDialog::OnButtonClick(wxCommandEvent& event) { SetReturnCode(10); // for example Hide(); } The ...