[Solved] OptionGadgets and ampersand
Posted: Mon Sep 02, 2019 2:00 pm
How can I make all three OptionGadgets below show their respective number of ampersands? That is, I specifically want to see "1&" for the first one, "2&&" for the second, and "3&&&" for the third. Reason is that the OptionGadget text has to match exactly what is in the clipboard, and sometimes the clipboard has "&&" or "&&&" in it.
Code: Select all
If OpenWindow(0, 300, 200, 140, 110, "OptionGadgets", #PB_Window_SystemMenu)
OptionGadget(0, 30, 20, 100, 20, "Option 1&")
OptionGadget(1, 30, 45, 100, 20, "Option 2&&")
OptionGadget(2, 30, 70, 100, 20, "Option 3&&&")
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf