Added wxTB_NODIVIDER and wxTB_NOALIGN so native Windows toolbar can
used in FL. Adjusted Windows toolbar height for wxTB_NODIVIDER style. Removed some false memory leak reporting from fontmap.cpp, mimecmn.cpp, strconv.cpp. Added and used MapBitmap function in newbmpbtn.cpp so the right colours are used under Windows. <controversial>Added iniconf.cpp to WIN32 compilation</conroversial> git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14936 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -19,6 +19,9 @@
|
||||
#include "wx/button.h"
|
||||
#include "wx/string.h"
|
||||
|
||||
// defaults
|
||||
#define NB_DEFAULT_MARGIN 2
|
||||
|
||||
// button label-text alignment types
|
||||
|
||||
#define NB_ALIGN_TEXT_RIGHT 0
|
||||
@@ -111,8 +114,8 @@ public:
|
||||
bool isFlat = TRUE,
|
||||
// this is the default type of fired events
|
||||
int firedEventType = wxEVT_COMMAND_MENU_SELECTED,
|
||||
int marginX = 2,
|
||||
int marginY = 2,
|
||||
int marginX = NB_DEFAULT_MARGIN,
|
||||
int marginY = NB_DEFAULT_MARGIN,
|
||||
int textToLabelGap = 2,
|
||||
bool isSticky = FALSE
|
||||
);
|
||||
@@ -125,8 +128,8 @@ public:
|
||||
bool isFlat = TRUE,
|
||||
// this is the default type of fired events
|
||||
int firedEventType = wxEVT_COMMAND_MENU_SELECTED,
|
||||
int marginX = 2,
|
||||
int marginY = 2,
|
||||
int marginX = NB_DEFAULT_MARGIN,
|
||||
int marginY = NB_DEFAULT_MARGIN,
|
||||
int textToLabelGap = 2,
|
||||
bool isSticky = FALSE
|
||||
);
|
||||
@@ -143,8 +146,8 @@ public:
|
||||
|
||||
// Sets the text alignment and margins.
|
||||
virtual void SetAlignments( int alignText = NB_ALIGN_TEXT_BOTTOM,
|
||||
int marginX = 2,
|
||||
int marginY = 2,
|
||||
int marginX = NB_DEFAULT_MARGIN,
|
||||
int marginY = NB_DEFAULT_MARGIN,
|
||||
int textToLabelGap = 2);
|
||||
|
||||
// Draws the decorations.
|
||||
@@ -194,6 +197,11 @@ public:
|
||||
// Responds to a kill focus event.
|
||||
void OnKillFocus( wxFocusEvent& event );
|
||||
|
||||
// Maps bitmap to current system colours on Windows
|
||||
#ifdef __WXMSW__
|
||||
WXHBITMAP MapBitmap(WXHBITMAP bitmap, int width, int height);
|
||||
#endif
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user