初版-带一个进度条

This commit is contained in:
睿 安
2026-01-24 22:42:46 +08:00
commit c367128889
100 changed files with 19726 additions and 0 deletions

23
sources/RadioButton.cpp Normal file
View File

@@ -0,0 +1,23 @@
#include "RadioButton.h"
namespace ezui {
RadioButton::RadioButton(Object* parentObject):CheckBox(parentObject)
{
}
void RadioButton::OnMouseDown(const MouseEventArgs& arg)
{
__super::OnMouseDown(arg);
SetCheck(true);
if (GetCheck() == true) {
for (auto& it : Parent->GetControls()) {
RadioButton* rbtn = dynamic_cast<RadioButton*>(it);
if (rbtn && rbtn != this && rbtn->GetCheck() == true) {
rbtn->SetCheck(false);
rbtn->Invalidate();
}
}
}
}
RadioButton::~RadioButton()
{
}
};