Code: Select all
If OpenWindow(0, 0, 0, 250, 105, "Disable/enable buttons...", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
ButtonGadget(0, 10, 15, 230, 30, "Disabled Button") : DisableGadget(0, #True)
ButtonGadget(1, 10, 60, 230, 30, "Enabled Button") : DisableGadget(1, #False)
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
// Moved from "Bugs - Linux" to "OS Specific/Linux" (Kiffi)