kwxIndControlSource Topic is solved

Talk here about issues with one of the components hosted at wxCode, or suggest features for it.
Post Reply
hook24
Knows some wx things
Knows some wx things
Posts: 29
Joined: Wed May 05, 2010 5:50 pm

kwxIndControlSource

Post by hook24 »

Hi, I'm using kwxIndControlSource, I just want to use AngularMeter but the compiler does not find the function to create, I'd say I've done everything right based on the calendar example, any ideas?


Code: Select all

#include "KWIC/AngularMeter.h"

....
...
...

Brujula = new kwxAngularMeter(this,ID_ANGULARMETER1,wxPoint(228,248),wxSize(150,150));

Code: Select all

class kwxAngularMeter ;
static const long ID_ANGULARMETER1;
kwxAngularMeter* Brujula;

Code: Select all

error: no matching function for call to ‘kwxAngularMeter::kwxAngularMeter(R2B2Frame* const, const long int&, wxPoint, wxSize)’


Auria
Site Admin
Site Admin
Posts: 6695
Joined: Thu Sep 28, 2006 12:23 am
Contact:

Post by Auria »

Check the docs for this control - not all controls have the same constructor.

(I think this add-on has no doc - in this case just look at the header. I found it here with google : http://hiasm.com/svn/elements/wxMSW/ext ... larMeter.h )

Code: Select all

 kwxAngularMeter(wxWindow *parent,
				const wxWindowID id         = -1,
				const wxString&  label      = wxEmptyString,
				const wxPoint&   pos        = wxDefaultPosition,
				const wxSize&    size       = wxDefaultSize,
				const long int   style      = 0);
"Keyboard not detected. Press F1 to continue"
-- Windows
hook24
Knows some wx things
Knows some wx things
Posts: 29
Joined: Wed May 05, 2010 5:50 pm

Post by hook24 »

Auria wrote:Check the docs for this control - not all controls have the same constructor.

(I think this add-on has no doc - in this case just look at the header. I found it here with google : http://hiasm.com/svn/elements/wxMSW/ext ... larMeter.h )

Code: Select all

 kwxAngularMeter(wxWindow *parent,
				const wxWindowID id         = -1,
				const wxString&  label      = wxEmptyString,
				const wxPoint&   pos        = wxDefaultPosition,
				const wxSize&    size       = wxDefaultSize,
				const long int   style      = 0);
I correct that whit

Code: Select all

 Brujula = new kwxAngularMeter(this,ID_ANGULARMETER1,wxEmptyString,wxPoint(228,248),wxSize(150,150),0);
But now the problem are

Code: Select all

undefined reference to `kwxAngularMeter::kwxAngularMeter(wxWindow*, int, wxString const&, wxPoint const&, wxSize const&, long)'|
undefined reference to `kwxAngularMeter::SetSectorColor(int, wxColour)'|
undefined reference to `kwxAngularMeter::SetSectorColor(int, wxColour)'|
undefined reference to `kwxAngularMeter::SetSectorColor(int, wxColour)'|
undefined reference to `kwxAngularMeter::SetValue(int)'|
undefined reference to `kwxAngularMeter::kwxAngularMeter(wxWindow*, int, wxString const&, wxPoint const&, wxSize const&, long)'|
undefined reference to `kwxAngularMeter::SetSectorColor(int, wxColour)'|
undefined reference to `kwxAngularMeter::SetSectorColor(int, wxColour)'|
undefined reference to `kwxAngularMeter::SetSectorColor(int, wxColour)'|
undefined reference to `kwxAngularMeter::SetValue(int)'|
||=== Build finished: 10 errors, 0 warnings ===|


Now I change the
#include "KWIC/AngularMeter.h" (in example)
for
#include "KWIC/AngularMeter.cpp"
but i has new problem

Code: Select all

error: no matching function for call to ‘wxString::Printf(const char [3], int&)’|
someone has used these libraries?

I see in this page http://wiki.codeblocks.org/index.php?ti ... sions_list that I can integrate to wxSmith, If somebody can explained how to do work the plugin
Auria
Site Admin
Site Admin
Posts: 6695
Joined: Thu Sep 28, 2006 12:23 am
Contact:

Post by Auria »

This component is not part of default wxWIdgets, so you need to add its .cpp to your project (or the library built from that .cpp, if any)
"Keyboard not detected. Press F1 to continue"
-- Windows
Post Reply