Copy to Clipboard
URL
// Change background color based on button click
Button.OnSelect =
Switch(
Dropdown1.Selected.Value,
"Red", Set(ScreenBackground, RGBA(255, 0, 0, 1)),
"Green", Set(ScreenBackground, RGBA(0, 255, 0, 1)),
"Blue", Set(ScreenBackground, RGBA(0, 0, 255, 1)),
Set(ScreenBackground, RGBA(255, 255, 255, 1)) // Default to white
);
// Update label message
Label1.Text = "Background changed to " & Dropdown1.Selected.Value;
Screen.Fill = ScreenBackground;