Jump to content

Recommended Posts

Posted

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.....

Posted
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?

Posted

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.

Posted
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;

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...