Beispiel #1
0
void wxFoldPanelItem::AddSeparator(const wxColour &color, int ySpacing, int leftSpacing, int rightSpacing)
{
    wxFoldWindowItem *wi = new wxFoldWindowItem(m_lastInsertPos, color, ySpacing, leftSpacing, rightSpacing);
    m_items.Add(wi);

    m_lastInsertPos += wi->GetWindowLength( this->IsVertical() );

    ResizePanel();
}
Beispiel #2
0
NAMESPACE_UPP

DropGrid::PopUpGrid::PopUpGrid()
{
	LiveCursor();
	FullColResizing(false);
	HorzGrid(false);
	DrawLastVertLine(false);
	TabAddsRow(false);
	SearchMoveCursor(true);
	SearchHideRows(false);
	SearchDisplay(false);
	ResizePanel();
	WhenLeftClick = THISBACK(CloseData);
	WhenEnter = THISBACK(CloseData);
	WhenEscape = THISBACK(CloseNoData);
	GridCtrl::WhenClose = THISBACK(CloseNoData);
}
Beispiel #3
0
void wxFoldPanelItem::AddWindow(wxWindow *window, int flags, int ySpacing, int leftSpacing, int rightSpacing)
{
    wxASSERT(window);

    wxFoldWindowItem *wi = new wxFoldWindowItem(window, flags, ySpacing, leftSpacing, rightSpacing);
    m_items.Add(wi);

    bool vertical = this->IsVertical();

    window->SetSize( vertical ? leftSpacing : m_lastInsertPos + ySpacing,
                     vertical ? m_lastInsertPos + ySpacing : leftSpacing,
                     wxDefaultCoord,
                     wxDefaultCoord,
                     wxSIZE_USE_EXISTING);

    m_lastInsertPos += wi->GetWindowLength( vertical );

    ResizePanel();
}