wxPanel Scrollbars



  • Hi,

    ich habe eine Frame, in der ich einfach nur 2 Panels nebeneinander haben will.
    Das linke Panel soll dabei Scrollbars haben.

    Mein Problem: die Scrollbars werden zwar angezeigt, ich kann aber nicht scrollen.

    Hier der Code:

    this->DXPanel = new STMaker::Widgets::DXPanel(this,this->MainApp->GetSTSystem(),wxDefaultPosition,wxDefaultSize);
    	this->DXPanel->InitDX();
    
    	this->DXPanel->SetScrollbar(wxVERTICAL,0,10,100,true);
    	this->DXPanel->SetScrollbar(wxHORIZONTAL,0,10,100,true);
    	this->DXPanel->Show(true);
    
    	this->ControlPanel = new wxPanel(this,wxID_ANY,wxDefaultPosition,wxSize(300,500));
    	this->ControlPanel->SetMinSize(wxSize(300,500));
    	this->ControlPanel->Show(true);
    
    	wxBoxSizer* sizer = new wxBoxSizer(wxHORIZONTAL);
    	sizer->Add(this->DXPanel,1,wxEXPAND);
    	sizer->Add(this->ControlPanel,0,wxEXPAND);
    
    	this->SetSizer(sizer);
    
    	this->SetMinSize(wxSize(600,500));
    	this->Maximize(true);
    

    Hab ich irgendwas vergessen?

    Gruß



  • http://wiki.wxwidgets.org/Scrolling

    Schau dir das mal an.


Anmelden zum Antworten