Exemplo n.º 1
0
SingleLineWXMEdit::SingleLineWXMEdit(wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style)
	: SimpleTextWXMEdit(parent, id, pos, size, style), m_LeftClickX(INT_MIN), m_LeftClickY(INT_MIN)
{
	SetMarkActiveLine(false);

	HideScrollBars();

	SetEncoding(wxT("UTF-32LE"));
	SetRecordCaretMovements(false);
	SetInsertSpacesInsteadOfTab(false);
	SetWantTab(false);
	LoadDefaultSyntaxScheme();

	wxSizeEvent evt;
	OnSize(evt);
}
Exemplo n.º 2
0
bool nuiScrollView::MouseUnclicked(nuiSize X, nuiSize Y, nglMouseInfo::Flags Button)
{
  if (!mLeftClick)
    return false;

  Dragged(X, Y);
  mLeftClick = false;

  Ungrab();
  
  nglTime now;
  double elapsed = now.GetValue() - mLastTime.GetValue();
  if (elapsed > 0.05)
  {
    mSpeedX = 0;
    mSpeedY = 0;
  }
  
  if (mHideScrollBars)
  {
    HideScrollBars();
  }
  return true;
}
Exemplo n.º 3
0
void nuiScrollView::OnHideTick(const nuiEvent& rEvent)
{
  mpHideTimer->Stop();
  HideScrollBars();
}