Need a compiled wxSkin Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
honeymagico
Earned a small fee
Earned a small fee
Posts: 14
Joined: Tue Jul 27, 2010 7:33 am
Location: The Republic of China (ROC)

Post by honeymagico »

evstevemd wrote:try with 2.8.xx?
Your sig shows that you use 2.9.1 and I'm not sure if it works with the version. UpCase is in position to pronounce that!
2.8 seems to work,I compiled sample only get 2 error

C:\wxSkin\include\wxSkinStaticText.h|28|error: default argument for parameter of type 'const wxString&' has type 'const char [1]'|
C:\wxSkin\include\wxSkinStaticText.h|32|error: default argument for parameter of type 'const wxString&' has type 'const char [17]'|
||=== Build finished: 2 errors, 0 warnings ===|

when I compile with wx2.8,always see this kind of error.
win7,ubuntu 10.04
code::blocks 10.05
mingw,gcc
wx 2.9.1 unicode
honeymagico
Earned a small fee
Earned a small fee
Posts: 14
Joined: Tue Jul 27, 2010 7:33 am
Location: The Republic of China (ROC)

Post by honeymagico »

I finally can compile wxSkin sample in my enviorment.
so I summarize my experience,maybe someone have the same problems.

wx2.8.11_unicode + code::blocks 10.05 + mingw 4.4.1

1.add missing declaration in wxSkinEngine.h
bool ReassignControlSkin(const wxWindow* ptr, const wxString& label);

2.modify wxSkinStaticText.h line 33
wxSkinStaticText(wxWindow* parent,int id,const wxString& label = wxEmptyString,const wxPoint& pos = wxDefaultPosition,const wxSize& size = wxDefaultSize,long style = wxNO_BORDER,const wxString& name = wxT("wxSkinStaticText"));

3.in each file header have a string "Ren?Kraus"
? maybe is a non-ANSI char,cause C::B cant read the file.

but I am not used to use wx2.8,I will keep try compile it in wx2.9.1

sorry for my poor English :oops:
and thanks your help.
win7,ubuntu 10.04
code::blocks 10.05
mingw,gcc
wx 2.9.1 unicode
honeymagico
Earned a small fee
Earned a small fee
Posts: 14
Joined: Tue Jul 27, 2010 7:33 am
Location: The Republic of China (ROC)

Post by honeymagico »

I successfully compiled wkSkin in wx2.9.1 unicode.
The main change is in wxSkinEngine.cpp
wxBITMAP_TYPE_ANY -> wxBITMAP_TYPE_PNG
I cant understand why wxBITMAP_TYPE_ANY not work.
Or it is a BUG?

Besides I change all "::wxLogError()" to "wxLogError()"
win7,ubuntu 10.04
code::blocks 10.05
mingw,gcc
wx 2.9.1 unicode
xiaoyu0720
In need of some credit
In need of some credit
Posts: 2
Joined: Mon Nov 07, 2011 2:34 pm

Re: Need a compiled wxSkin

Post by xiaoyu0720 »

include\guibuilder.h||In constructor 'wxGbWindowStub::wxGbWindowStub(wxString, wxWindow*)':|
include\guibuilder.h|675|warning: comparison between signed and unsigned integer expressions|
src\guibuilder.cpp|292|error: expected id-expression before 'if'|
src\guibuilder.cpp|292|error: expected ';' before 'if'|
src\guibuilder.cpp|292|error: expected '}' before 'else'|
src\guibuilder.cpp|310|error: expected unqualified-id before 'while'|

I really have no idea about this problem, at last this problem was solved by changing file log.h
#define wxDO_LOG_IF_ENABLED(level) wxDO_LOG(level)
// if ( !wxLog::IsLevelEnabled(wxLOG_##level, wxLOG_COMPONENT) ) \
// {} \
// else \
// wxDO_LOG(level)
the macro wxDO_LOG_IF_ENABLED really should be changed

now another problem makes me crazy,

wxSkinSlider.cpp||In member function 'virtual void wxSkinSlider::DrawCustom(wxDC&)':|
wxSkinSlider.cpp|86|error: 'bmp_fill' was not declared in this scope|
wxSkinSlider.cpp|105|error: 'bmp_fill' was not declared in this scope|
wxSkinSlider.cpp||In member function 'virtual void wxSkinSlider::SetCustomSkin(const ControlInfo*)':|
wxSkinSlider.cpp|118|error: 'bmp_fill' was not declared in this scope|
Post Reply