If OpenWindow(0, 0, 0, 132, 75, "CheckboxGadget Flag", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
CheckBoxGadget(2, 8, 10, 106, 20, "Show Password")
Repeat
ev = WaitWindowEvent()
Select ev
Case #PB_Event_Gadget
If GetGadgetState(1) = #PB_Checkbox_Checked
Debug "Checked"
Else
Debug "UnChecked"
EndIf
EndSelect
Until ev = #PB_Event_CloseWindow
EndIf
Last edited by Randy Walker on Fri Nov 07, 2025 10:37 pm, edited 1 time in total.
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
Nothing is faster, more stable, or easier to maintain than code that doesn’t exist.
Thank you RASHAD and Thank you mk-soft.
My real goal was trying to create a Show Password Checkbox but I found a really great solution from Piero: viewtopic.php?p=634703#p634703
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
Nothing is faster, more stable, or easier to maintain than code that doesn’t exist.
Huh? I would not want to restrict users to numeric only passwords. Who does that?
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
Nothing is faster, more stable, or easier to maintain than code that doesn’t exist.