Re: dynamic buttons on the formI assume you mean that you are trying to place a second button on the same form, i.e. over the top of the first button., , If this is the case, there is a BringToFront function for visual components, but I would be tempted to just change the caption of the button depending on what the user has selected. You could then use the buttons caption in the same way as a variable. So, in the buttons OnClick event you could have something like, , if Button1.Caption = 'Button1' then, begin, Do the button1 procedure, end;, if Button1.Caption = 'Button2' then, begin, Do whatever the button2 procedure was meant to do, end; |