Find which StringGadget has it’s text selected
Posted: Tue Mar 31, 2020 7:35 pm
I have 2 StringGadgets and I want to be able select the contents of one StringGadget or the other with my mouse and then determine which StringGadget has it’s text selected. Is this possible?
I have a button that populates the StringGadgets when pressed. I can’t use GetActiveGadget() because it shows the active gadget is the button. If I click in one of the StringGadgets and use GetActiveGadget() it still shows the active gadget as the button. I can’t use SetActiveGadget() because it could be either of the two that I want the text from.
I have a button that populates the StringGadgets when pressed. I can’t use GetActiveGadget() because it shows the active gadget is the button. If I click in one of the StringGadgets and use GetActiveGadget() it still shows the active gadget as the button. I can’t use SetActiveGadget() because it could be either of the two that I want the text from.