Hello! I would like to do a search to have this: I have 10 forms, buttons are located in each form. In 1 form (main menu) there is a "search" button, when the search opens, I enter the "body mass" which is located in the 9th form and it teleports there. And you can do this: in each form, create a memo (they will be hidden) there to write all the buttons and using the search he found these tags and teleported to the form where these tags are located. I need a code or somehow help me by 1 method or 2.
1 answer
I would describe the interface or class TFinder which takes SearchPattern as a string, and returns a list of objects that fall under the SearchPattern condition. Objects are forms that when created (OnCreate) are registered in the class: GlobalFinder.RegisterForm (Self) and in destruction (OnDestroy) deregister GlobalFinder.UnregisterForm (Self).
Each registered form must have methods / properties that TFinder knows about and searches for them in all regs. objects.
|