Israel Portillo Posted November 18, 2020 Posted November 18, 2020 Hi group. Is there a way to attach any value to a runtime created control to be used in any convenient purpose? Like to get the sum in a TUniDBGridColumn..... I will be using runtime buttons in a parent control and I would like to identify every one not just in the caption..... Quote
Israel Portillo Posted November 18, 2020 Author Posted November 18, 2020 Also... How to attach a beforeInit in a runtime created panel too... Thanks for your advise. Quote
Sherzod Posted November 19, 2020 Posted November 19, 2020 16 hours ago, Israel Portillo said: Is there a way to attach any value to a runtime created control to be used in any convenient purpose? 12 hours ago, Israel Portillo said: How to attach a beforeInit in a runtime created panel too... Hello, Can you please explain in more details? Quote
Israel Portillo Posted November 19, 2020 Author Posted November 19, 2020 Yes, of course... I will be creating into a container, panels and buttons in runtime, Then every button/panel will need to respond to own events, Is there a way to attach a value (or Indicative) to any runtime created control to differentiate one from other ? The second point is how to attach too a ClienteEvents->UniEvents->beforeevent to a runtime created panel or button.... Thanks. Quote
Israel Portillo Posted November 20, 2020 Author Posted November 20, 2020 Please forget my first question... I have discoved the tag property in TControl. But still waiting to resolve the second one... Thanks. Quote
Abaksoft Posted November 20, 2020 Posted November 20, 2020 8 hours ago, Israel Portillo said: The second point is how to attach too a ClienteEvents->UniEvents->beforeevent to a runtime created panel or button.... Thanks. Maybe on beforeShow event : For each component in yourForm Do Begin if component.Tab = 3 then begin Component.ClienteEvents.UniEvents.beforeevent:=..... end end; Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.