I tried to use the SetHeight() method but it shows error which says expression must have class type.
This is how i create the wxIcon in the class declaration:
MyClass: public wxPane
{
wxIcon myIcon(wxIcon(samples_xmp);
}
And then inside the constructor i have :
MyClass::MyClass(....)
{
myIcon.SetHeight();//this gives the above said error
}
I am using the xpm format to show the icon. How can i change the size of myIcon to lets say 20 pixels wide and 20 pixels high? Should I use samples_xpm.SetHeight(20) instead? But this won't make sense since samples_xpm is not a class object. But if myIcon is a class object why aren't the SetHeight() and SetWidth() methods available? How can i change the height of myIcon.