Hi IdeasVacuum. You're right; it would add a level of clarity. But since it only responds to its corresponding OpenGadgetList(), adding the gadget/window number as a requirement would only add verbosity to code.
When working in curly-bracket languages, I usually add a comment at the closing bracket to identify which scope it is closing. Perhaps this might be sufficient.
Texas Instruments TI-99/4A Home Computer: the first home computer with a 16bit processor, crammed into an 8bit architecture. Great hardware - Poor design - Wonderful BASIC engine. And it could talk too!Please visit my YouTube Channel