wxString mLabelText;
wxString mImageFileName;
- int mImageFileType;
+ wxBitmapType mImageFileType;
wxBitmap mDepressedBmp; // source image for rendering
// labels for particular state
// use this constructor if buttons have to be persistant
wxNewBitmapButton( const wxString& bitmapFileName,
- const int bitmapFileType = wxBITMAP_TYPE_BMP,
- const wxString& labelText = "",
- int alignText = NB_ALIGN_TEXT_BOTTOM,
- bool isFlat = TRUE,
- // this is the default type of fired events
- int firedEventType = wxEVT_COMMAND_MENU_SELECTED,
- int marginX = 2,
- int marginY = 2,
- int textToLabelGap = 2,
- bool isSticky = FALSE
- );
+ const wxBitmapType bitmapFileType = wxBITMAP_TYPE_BMP,
+ const wxString& labelText = "",
+ int alignText = NB_ALIGN_TEXT_BOTTOM,
+ bool isFlat = TRUE,
+ // this is the default type of fired events
+ int firedEventType = wxEVT_COMMAND_MENU_SELECTED,
+ int marginX = 2,
+ int marginY = 2,
+ int textToLabelGap = 2,
+ bool isSticky = FALSE
+ );
~wxNewBitmapButton();
mIsSticky( isSticky ),
mIsFlat( isFlat ),
mLabelText( labelText ),
- mImageFileType( -1 ),
+ mImageFileType( wxBITMAP_TYPE_INVALID ),
mDepressedBmp( labelBitmap ),
mpDepressedImg( NULL ),
}
wxNewBitmapButton::wxNewBitmapButton( const wxString& bitmapFileName,
- const int bitmapFileType,
- const wxString& labelText,
- int alignText,
- bool isFlat,
- int firedEventType,
- int marginX,
- int marginY,
- int textToLabelGap,
- bool isSticky)
+ const wxBitmapType bitmapFileType,
+ const wxString& labelText,
+ int alignText,
+ bool isFlat,
+ int firedEventType,
+ int marginX,
+ int marginY,
+ int textToLabelGap,
+ bool isSticky)
: mTextToLabelGap ( 2 ),
mMarginX( 2 ),