All buttons are created with width 200:
Code: Select all
If OpenWindow(0, 0, 0, 222, 400, "ButtonGadgets", #PB_Window_SystemMenu | #PB_Window_ScreenCentered | #PB_Window_Invisible)
For i = 0 To 9 Step 2
ButtonGadget(i, 10, 10+ i *30, 200, 25, "Standard Button "+i)
ButtonGadget(i+1, 10, 10+(i+1)*30, 200, 24, "Standard Button "+Str(i+1))
Next
HideWindow(0,#False)
;SetActiveGadget(-1)
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf