Crude example:
Code:
Enumeration
#WinMain
#OptA1
#OptA2
#OptA3
#OptA4
#HiddenTxt
#OptB1
#OptB2
#OptB3
#OptB4
#BtnOK
EndEnumeration
Procedure OpenWin()
;------------------
If OpenWindow(#WinMain, 0, 0, 300, 200, "Radio buttons", #PB_Window_SystemMenu|#PB_Window_SizeGadget|#PB_Window_MinimizeGadget|#PB_Window_TitleBar|#PB_Window_MaximizeGadget|#PB_Window_ScreenCentered)
OptionGadget(#OptA1, 10, 10, 100, 25, "Option A 1")
OptionGadget(#OptA2, 10, 35, 100, 25, "Option A 2")
OptionGadget(#OptA3, 10, 60, 100, 25, "Option A 3")
OptionGadget(#OptA4, 10, 85, 100, 25, "Option A 4")
TextGadget(#HiddenTxt, 10, 150, 10, 10, "")
OptionGadget(#OptB1, 200, 10, 100, 25, "Option B 1")
OptionGadget(#OptB2, 200, 35, 100, 25, "Option B 2")
OptionGadget(#OptB3, 200, 60, 100, 25, "Option B 3")
OptionGadget(#OptB4, 200, 85, 100, 25, "Option B 4")
ButtonGadget(#BtnOK, 100, 150, 100, 30, "OK")
EndIf
EndProcedure
Procedure WaitForUser()
;---------------------
Protected iEvent.i = 0
Protected iGdgID.i = 0
Repeat
iEvent = WaitWindowEvent(1)
Select iEvent
Case #PB_Event_Gadget
iGdgID = EventGadget()
Select iGdgID
Case #BtnOK : iEvent = #PB_Event_CloseWindow
EndSelect
EndSelect
Until iEvent = #PB_Event_CloseWindow
EndProcedure
OpenWin()
WaitForUser()
CloseWindow(#WinMain)
End