Search found 429 matches

by xaviou
Thu May 12, 2016 5:51 am
Forum: Compiler / Linking / IDE Related
Topic: Linking errors in release build but not in debug
Replies: 5
Views: 1948

Re: Linking errors in release build but not in debug

Hi 6> Creating library C:\Users\<project-path>\Release\patcher.lib and object C:\Users\<project-path>\Release\patcher.exp 6>image.obj : error LNK2001: unresolved external symbol "void __cdecl wxOnAssert(char const *,int,char const *,char const *,char const *)" ([email protected]@[email protected]) 6>statusbar...
by xaviou
Wed May 11, 2016 5:42 am
Forum: C++ Development
Topic: How to shrink RibbonPanel ?
Replies: 2
Views: 656

Re: How to shrink RibbonPanel ?

Hi .... //not using wxWrapSizer(wxHORIZONTAL) as it reports an incorrect min height wxSizer* sizer_panelsizer = new wxBoxSizer(wxVERTICAL); sizer_panelsizer->AddStretchSpacer(1); sizer_panelsizer->Add(sizer_panelcombo, 1, wxALL | wxEXPAND, 1); sizer_panelsizer->Add(sizer_panelcombo2, 1, wxALL | wxEX...
by xaviou
Mon May 09, 2016 3:43 pm
Forum: C++ Development
Topic: Need help for XML Pasing
Replies: 2
Views: 591

Re: Need help for XML Pasing

Hi. I didn't have a look at the entire code, but I can tell you something : when you create the wxXmlDocument object from the wxMemoryInputStream, they donc keep "linked" together. The wxXmlDocument parses all the datas and make a copy of the xml structure. So when you make modifications to it, thes...
by xaviou
Mon May 09, 2016 3:38 pm
Forum: Component Writing
Topic: Simplest Form Of Creating Your Own wxButton
Replies: 11
Views: 4001

Re: Simplest Form Of Creating Your Own wxButton

If this is juste for buttons, you can have a look ad the "render" sample, witch does exactly this.

Regards
Xav'
by xaviou
Mon May 09, 2016 3:37 pm
Forum: C++ Development
Topic: Getting Click Events From Dynamically Created wxButtons
Replies: 5
Views: 1068

Re: Getting Click Events From Dynamically Created wxButtons

Hi. You can use dynamically connected events handlers, on you can use "generic" events handlers witch dispatch the work depending on the clicked button. For dynamically connected events : wxButton *myButton = new wxButton(.........); myButton->Bind(wxEVT_BUTTON, &MyFrame::OnMyButtonClicked, this); /...
by xaviou
Mon May 09, 2016 3:15 pm
Forum: C++ Development
Topic: [3.1.0] Button fill whole window
Replies: 5
Views: 710

Re: [3.1.0] Button fill whole window

Hi
AndrzejB wrote:Where are examples of using varies of sizers?
You can have a look here : http://docs.wxwidgets.org/trunk/page_cl ... _winlayout

Regards
Xav'
by xaviou
Mon May 09, 2016 11:46 am
Forum: C++ Development
Topic: [3.1.0] Button fill whole window
Replies: 5
Views: 710

Re: [3.1.0] Button fill whole window

Hi Sizer not helps You forgot to assignt he sizer to the frame. Window::Window(const wxString& title, const wxPoint &pos, const wxSize &size, long style = wxDEFAULT_FRAME_STYLE) :wxFrame(NULL, -1, title, pos, size, style) { wxGridSizer *vbox = new wxGridSizer(2,2,10,10); vbox->Add(new wxButton(this,...
by xaviou
Wed May 04, 2016 6:10 am
Forum: Compiler / Linking / IDE Related
Topic: CodeLite 9.1 and wxWidgets 3.1 configuration issue
Replies: 17
Views: 5725

Re: CodeLite 9.1 and wxWidgets 3.1 configuration issue

Hi. Hopefully Xaviou or someone else has some better ideas. Not really :? But we can make some more tests, because I've just seen a (bug ?) problem with my version of wx-config. First, open a "command line" window. Set the WXWIN and WXCFG vars to reflect the CodeLite's ones : set WXWIN=C:\wxWidgets ...
by xaviou
Tue May 03, 2016 9:38 pm
Forum: Compiler / Linking / IDE Related
Topic: CodeLite 9.1 and wxWidgets 3.1 configuration issue
Replies: 17
Views: 5725

Re: CodeLite 9.1 and wxWidgets 3.1 configuration issue

Hi -copy "gcc510TDM_x64_dll\*.*" to "c:\wxwidgets\lib\*.*" This is the source of the problem This may have changed the path that wx-config expects to find. Exactly. It would be better to remove all the content of the "lib" folder. Then re-extract the content of the archive you've downloaded as you'v...
by xaviou
Tue May 03, 2016 11:28 am
Forum: Compiler / Linking / IDE Related
Topic: CodeLite 9.1 and wxWidgets 3.1 configuration issue
Replies: 17
Views: 5725

Re: CodeLite 9.1 and wxWidgets 3.1 configuration issue

Hi ----------Building project:[ Project1 - Debug ] (Single File Build)---------- Please use the --wxcfg flag (as in wx-config --wxcfg=gcc_dll/mswud) or set the environment variable WXCFG (as in WXCFG=gcc_dll/mswud) to specify which configuration exactly you want to use. ..... This error message is g...
by xaviou
Mon May 02, 2016 6:45 am
Forum: C++ Development
Topic: wxCommandEvent propagation issue
Replies: 4
Views: 851

Re: wxCommandEvent propagation issue

Hi. This looks like a terribly unnatural way to handle events. Well, I know :oops: but that was the first (and simplest) way I found to acheive what I wanted to do. You should probably do something like this: - define your own event type, see event sample, wxDECLARE_EVENT, wxDEFINE_EVENT That was wh...
by xaviou
Sun May 01, 2016 9:36 am
Forum: C++ Development
Topic: wxCommandEvent propagation issue
Replies: 4
Views: 851

Re: wxCommandEvent propagation issue

Hi again... I solved the problem using the Id of the event (it was always set to wxID_ANY so I changed it in the main frame's event handler and made a test on it to see if the event has already been processed), but It doesn't explain why this arrives on some compilers, and not on others sor I don't ...
by xaviou
Sun May 01, 2016 9:07 am
Forum: C++ Development
Topic: wxCommandEvent propagation issue
Replies: 4
Views: 851

wxCommandEvent propagation issue

Hi to all. As said in the title, I have an event propagation issue. I have a main frame, and a few panels as children. I also have a "DatasManager" class witch for example, send a custom wxCommandEvent to the frame when it loads or when it creates a datas file. In the event handler of the frame, whe...
by xaviou
Sat Apr 23, 2016 9:05 am
Forum: Platform Related Issues
Topic: Disabled toolbar items hidden under OSX
Replies: 9
Views: 1258

Re: Disabled toolbar items hidden under OSX

Hi to all.

It seems it was an OS-X problem.
I've juste upgraded my system to 10.11.4 and this behavior isn't present.

Thanks to all.

Regards
Xav'
by xaviou
Fri Apr 22, 2016 6:38 pm
Forum: C++ Development
Topic: wxRadioButton size
Replies: 12
Views: 1836

Re: wxRadioButton size

Hi.

Did you tried building the "controls" sample for each version of wxWidgets, to see if the same behavior occurs ?

I've tested but I can't see any difference (both version of the sample have been built on a Windows 7 machine, and runned under a Windows 10).

Regards
Xav'