240{
241 using namespace wxInspector;
242
243 props.push_back({"Corner Radius", "LabeledStaticBox", PropertyType::Integer,
244 wxString::Format("%d", lsb->GetCornerRadius()), false, {},
245 [lsb]() { return wxString::Format("%d", lsb->GetCornerRadius()); },
246 [lsb](const wxString& v) {
247 long val;
248 if (!v.ToLong(&val)) return false;
249 lsb->SetCornerRadius((int) val);
250 return true;
251 }});
252
253 props.push_back({"Border Width", "LabeledStaticBox", PropertyType::Integer,
254 wxString::Format("%d", lsb->GetBorderWidth()), false, {},
255 [lsb]() { return wxString::Format("%d", lsb->GetBorderWidth()); },
256 [lsb](const wxString& v) {
257 long val;
258 if (!v.ToLong(&val)) return false;
259 lsb->SetBorderWidth((int) val);
260 return true;
261 }});
262
263
264 wxColour bc = lsb->GetBorderColor().colorForStates(0);
265 props.push_back({"Border Color", "LabeledStaticBox", PropertyType::String,
266 bc.GetAsString(wxC2S_HTML_SYNTAX), false, {},
267 [lsb]() {
268 return lsb->GetBorderColor()
269 .colorForStates(0)
270 .GetAsString(wxC2S_HTML_SYNTAX);
271 },
272 [lsb](const wxString& v) {
273 wxColour c(v);
274 if (!c.IsOk()) return false;
275 lsb->SetBorderColor(StateColor(c));
276 return true;
277 }});
278
279 props.push_back({"Scale", "LabeledStaticBox", PropertyType::ReadOnly,
280 wxString::Format("%.2f", lsb->GetScale()), true, {},
281 [lsb]() { return wxString::Format("%.2f", lsb->GetScale()); },
282 nullptr});
283}