Israel Portillo Posted November 18, 2020 Share 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..... Link to comment Share on other sites More sharing options...
Israel Portillo Posted November 18, 2020 Author Share Posted November 18, 2020 Also... How to attach a beforeInit in a runtime created panel too... Thanks for your advise. Link to comment Share on other sites More sharing options...
Sherzod Posted November 19, 2020 Share 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? Link to comment Share on other sites More sharing options...
Israel Portillo Posted November 19, 2020 Author Share 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. Link to comment Share on other sites More sharing options...
Israel Portillo Posted November 20, 2020 Author Share 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. Link to comment Share on other sites More sharing options...
Abaksoft Posted November 20, 2020 Share 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; Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now