void clEditorTipWindow::DoLayoutTip()
{
    SetSize(DoGetTipSize());
    DoAdjustPosition();
    Layout();
    Refresh();
}
void clEditorTipWindow::Activate(wxPoint pt, int lineHeight, wxColour parentBgColour)
{
    if(m_tips.empty()) return;

    m_point = pt;
    m_lineHeight = lineHeight;
    m_parentBgColour = parentBgColour;

    DoAdjustPosition();
    if(!IsActive()) {
        Show();
    }
}
void DisplayVariableDlg::ShowDialog(bool center)
{
    if ( !center ) {
        wxPopupWindow::Show();
        DoAdjustPosition();

    } else {
        Centre();
        wxPopupWindow::Show();
    }

    LEditor *editor = clMainFrame::Get()->GetMainBook()->GetActiveEditor();
    if(editor) {
#ifndef __WXMAC__
        clMainFrame::Get()->Raise();
#endif
        editor->SetFocus();
        editor->SetActive();
    }
    m_mousePosTimer->Start(200);
}