Search found 437 matches

by xaviou
Mon Dec 26, 2016 12:43 pm
Forum: Platform Related Issues
Topic: Mac makefile made from scratch
Replies: 3
Views: 1408

Re: Mac makefile made from scratch

Hi. As doublemax said, you need to creare an application bundle. But if you want to make some tests without creating a bundle, you just need to make a call to "SetFile" : SetFile -t APPL YourExecutableFile Note that you will also have to make this call if you create a bundle. Regards Xav' ...
by xaviou
Mon Dec 12, 2016 7:24 am
Forum: Compiler / Linking / IDE Related
Topic: Building 32bit wxWidgets libraries with tdm64
Replies: 2
Views: 1589

Re: Building 32bit wxWidgets libraries with tdm64

Hi TL/DNR version : I think it would be possible to build 32 bit libraries with tdm64 if you could pass extra flags to windres. Is there any way to do that with mingw32-make? Yes, it is Here his the full command line I use for this : mingw32-make.exe -f makefile.gcc BUILD=release CPP="gcc -E -D...
by xaviou
Sat Nov 19, 2016 4:11 pm
Forum: C++ Development
Topic: wxT Macro fails
Replies: 7
Views: 2520

Re: wxT Macro fails

goeba wrote:So I still think that it´s a bug in wxWidgets - or perhaps in dialog blocks.
I don't think so...

If you use unicode strings, you should use unicode encoded sources files.
Try to convert the source file : it should compile.

Regards
Xav'
by xaviou
Sat Nov 19, 2016 12:35 pm
Forum: C++ Development
Topic: wxT Macro fails
Replies: 7
Views: 2520

Re: wxT Macro fails

Hi.

One thing to check : as you are using Unicode, is your source file correctly encoded ?

Error like this generally append when using unicode strings in an ascii source file.

Regards
Xav'
by xaviou
Tue Oct 18, 2016 11:40 am
Forum: General Development
Topic: size of a dynamic list in python
Replies: 2
Views: 1394

Re: size of a dynamic list in python

Hi

Are you just searching something like "len(list1)" ?

Regards
Xav'
by xaviou
Tue Sep 13, 2016 3:17 pm
Forum: C++ Development
Topic: wxSizer not working with image panel
Replies: 2
Views: 1339

Re: wxSizer not working with image panel

Hi.
mybofy wrote:What'is my errors ?
You never tell to the sizers system what is the needed size of your panel.
So it surely have a 0px x 0px size.

You can make a call to SetMinSize on your ImagePanel to avoid this.

Regards

XAv'
by xaviou
Mon Jul 25, 2016 7:53 am
Forum: Compiler / Linking / IDE Related
Topic: How to Build wxWidgets debug library?
Replies: 1
Views: 986

Re: How to Build wxWidgets debug library?

Hi

A debug wxWidgets configuration won't help you building the "Release" target or your project.

From the build result you've posted, you are just missing an include directory witch should be something like "C:\wxWidgets-3.1.0\lib\gcc_lib\mswu".

Regards
Xav'
by xaviou
Wed Jun 01, 2016 7:44 am
Forum: C++ Development
Topic: Why are my panel controls all on top of one another?
Replies: 11
Views: 2699

Re: Why are my panel controls all on top of one another?

Hi If you're just starting out, coding the UI elements by hand can be tricky. But I think this is the best way to understand the sizers concept. This is also the best way to have optimized code. But this is of course my own opinion. To avoid errors, I generally write my code as a tree (using indenta...
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: 2792

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 *)" (?wxOnAssert@@YAXPBDH000@Z) 6...
by xaviou
Wed May 11, 2016 5:42 am
Forum: C++ Development
Topic: How to shrink RibbonPanel ?
Replies: 2
Views: 996

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: 946

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 t...
by xaviou
Mon May 09, 2016 3:38 pm
Forum: Component Writing
Topic: Simplest Form Of Creating Your Own wxButton
Replies: 11
Views: 13245

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: 2088

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::OnMyButtonCli...
by xaviou
Mon May 09, 2016 3:15 pm
Forum: C++ Development
Topic: [3.1.0] Button fill whole window
Replies: 5
Views: 1675

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: 1675

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 wx...