void Panel::OnResizedInternal( Gwen::Controls::Base * pControl) { onResize.Call(this); OnResized(); }
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(); }
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(); }
bool MsgBubbleNotice::OnResize( ui::EventArgs* arg ) { OnResized(); return true; }