mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-31 12:41:20 -06:00
FIX:fix the device interface button adaptation problem
Change-Id: Ide49dce78dd83cdb87e13dc93fb128e554d36871
This commit is contained in:
parent
ed1870b3a5
commit
1337498efa
5 changed files with 18 additions and 18 deletions
|
|
@ -1,17 +1,17 @@
|
|||
#include "wxStaticText2.hpp"
|
||||
#include "ErrorMsgStaticText.hpp"
|
||||
|
||||
wxStaticText2::wxStaticText2() {}
|
||||
ErrorMsgStaticText::ErrorMsgStaticText() {}
|
||||
|
||||
wxStaticText2::wxStaticText2(wxWindow * parent,
|
||||
ErrorMsgStaticText::ErrorMsgStaticText(wxWindow * parent,
|
||||
wxWindowID id,
|
||||
const wxPoint & pos,
|
||||
const wxSize & size)
|
||||
{
|
||||
Create(parent, id, pos, size);
|
||||
Bind(wxEVT_PAINT, &wxStaticText2::paintEvent, this);
|
||||
Bind(wxEVT_PAINT, &ErrorMsgStaticText::paintEvent, this);
|
||||
}
|
||||
|
||||
void wxStaticText2::paintEvent(wxPaintEvent &evt)
|
||||
void ErrorMsgStaticText::paintEvent(wxPaintEvent &evt)
|
||||
{
|
||||
auto size = GetSize();
|
||||
wxPaintDC dc(this);
|
||||
|
|
@ -1,18 +1,18 @@
|
|||
|
||||
#ifndef _WX_STATTEXT2_H_
|
||||
#define _WX_STATTEXT2_H_
|
||||
#ifndef _WX_ERRORMSGSTATTEXT_H_
|
||||
#define _WX_ERRORMSGSTATTEXT_H_
|
||||
|
||||
#include "wx/stattext.h"
|
||||
|
||||
class WXDLLIMPEXP_CORE wxStaticText2 : public wxPanel
|
||||
class WXDLLIMPEXP_CORE ErrorMsgStaticText : public wxPanel
|
||||
{
|
||||
public:
|
||||
wxString m_msg;
|
||||
wxStaticText2();
|
||||
wxStaticText2(wxWindow *parent,
|
||||
ErrorMsgStaticText();
|
||||
ErrorMsgStaticText(wxWindow *parent,
|
||||
wxWindowID id = wxID_ANY,
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
const wxSize& size = wxSize(200,200));
|
||||
const wxSize& size = wxSize(0,0));
|
||||
|
||||
void paintEvent(wxPaintEvent &evt);
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue