Exemplo n.º 1
0
Arquivo: panel.cpp Projeto: ICRAR/void
void
Panel::OnResizedInternal(
    Gwen::Controls::Base * pControl)
{
    onResize.Call(this);
    OnResized();
}
Exemplo n.º 2
0
	void DiskChange::OnCreated() {
		grp.Move(8, 8);
		grp.Create(*this);

		cmdOK.SetText(L"OK");
		cmdOK.Pushed += Piston::Delegate<void()>(this, &DiskChange::cmdOK_Pushed);
		cmdOK.Resize(72, 24);
		cmdOK.Create(*this);

		cmdCancel.SetText(L"Cancel");
		cmdCancel.Resize(cmdOK.GetSize());
		cmdCancel.Pushed += Piston::Delegate<void()>(this, &DiskChange::cmdCancel_Pushed);
		cmdCancel.Create(*this);

		ResizeClient(384, 144);
		OnResized();
	}
Exemplo n.º 3
0
void MsgBubbleNotice::RefreshNotice()
{
	std::wstring wstr;
	if (msg_.type_ == nim::kNIMMessageTypeCustom)
		wstr = GetCustomMsg(msg_.attach_);
	else if (msg_.type_ == nim::kNIMMessageTypeNotification)
		GetNotifyMsg(msg_.attach_, msg_.sender_accid_, msg_.receiver_accid_, wstr, session_id_);
	else if (msg_.type_ == nim::kNIMMessageTypeTips)
	{
		wstr = nbase::UTF8ToUTF16(msg_.content_);
		if (wstr.empty())
			wstr = L"空提醒消息";
	}
	
	notice_->SetText(wstr);
	OnResized();
}
Exemplo n.º 4
0
bool MsgBubbleNotice::OnResize( ui::EventArgs* arg )
{
	OnResized();
	return true;
}