A bit more DnD and clipbrd updates
wxTextCtrl now hides the vertical until required git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1197 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
		@@ -78,7 +78,6 @@ class MyPanel: public wxPanel
 | 
			
		||||
    void OnSpinUpdate( wxSpinEvent &event );
 | 
			
		||||
    void OnPasteFromClipboard( wxCommandEvent &event );
 | 
			
		||||
    void OnCopyToClipboard( wxCommandEvent &event );
 | 
			
		||||
    void OnCutToClipboard( wxCommandEvent &event );
 | 
			
		||||
    
 | 
			
		||||
    wxListBox     *m_listbox;
 | 
			
		||||
    wxChoice      *m_choice;
 | 
			
		||||
@@ -189,7 +188,6 @@ const int  ID_COMBO_ENABLE      = 147;
 | 
			
		||||
const int  ID_TEXT              = 150;
 | 
			
		||||
const int  ID_PASTE_TEXT        = 151;
 | 
			
		||||
const int  ID_COPY_TEXT         = 152;
 | 
			
		||||
const int  ID_CUT_TEXT          = 153;
 | 
			
		||||
 | 
			
		||||
const int  ID_RADIOBOX          = 160;
 | 
			
		||||
const int  ID_RADIOBOX_SEL_NUM  = 161;
 | 
			
		||||
@@ -245,7 +243,6 @@ BEGIN_EVENT_TABLE(MyPanel, wxPanel)
 | 
			
		||||
  EVT_SPIN      (ID_SPIN,                 MyPanel::OnSpinUpdate)
 | 
			
		||||
  EVT_BUTTON    (ID_PASTE_TEXT,           MyPanel::OnPasteFromClipboard)
 | 
			
		||||
  EVT_BUTTON    (ID_COPY_TEXT,            MyPanel::OnCopyToClipboard)
 | 
			
		||||
  EVT_BUTTON    (ID_CUT_TEXT,             MyPanel::OnCutToClipboard)
 | 
			
		||||
END_EVENT_TABLE()
 | 
			
		||||
 | 
			
		||||
MyPanel::MyPanel( wxFrame *frame, int x, int y, int w, int h ) :
 | 
			
		||||
@@ -355,9 +352,8 @@ MyPanel::MyPanel( wxFrame *frame, int x, int y, int w, int h ) :
 | 
			
		||||
  (*m_multitext) << " More text.";
 | 
			
		||||
//  m_multitext->SetBackgroundColour("wheat");
 | 
			
		||||
  (void)new wxStaticBox( panel, -1, "wxClipboard", wxPoint(345,50), wxSize(160,145) );
 | 
			
		||||
  (void)new wxButton( panel, ID_COPY_TEXT, "Copy line 1", wxPoint(370,70), wxSize(110,30) );
 | 
			
		||||
  (void)new wxButton( panel, ID_PASTE_TEXT, "Paste text", wxPoint(370,110), wxSize(110,30) );
 | 
			
		||||
  (void)new wxButton( panel, ID_CUT_TEXT, "Cut line 1", wxPoint(370,150), wxSize(110,30) );
 | 
			
		||||
  (void)new wxButton( panel, ID_COPY_TEXT, "Copy line 1", wxPoint(370,80), wxSize(110,30) );
 | 
			
		||||
  (void)new wxButton( panel, ID_PASTE_TEXT, "Paste text", wxPoint(370,140), wxSize(110,30) );
 | 
			
		||||
  m_notebook->AddPage(panel, "wxTextCtrl" , FALSE, Image_Text);
 | 
			
		||||
  
 | 
			
		||||
  wxString choices2[] =
 | 
			
		||||
@@ -490,10 +486,6 @@ void MyPanel::OnCopyToClipboard( wxCommandEvent &WXUNUSED(event) )
 | 
			
		||||
#endif
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void MyPanel::OnCutToClipboard( wxCommandEvent &WXUNUSED(event) )
 | 
			
		||||
{
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void MyPanel::OnSize( wxSizeEvent& WXUNUSED(event) )
 | 
			
		||||
{
 | 
			
		||||
  int x = 0;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user