more "simple", clone a button1 into a button2 with all its properties and events by code. The idea is to have a button1, which changes visually at design time and from it, duplicates all the ones you need at run time. Any simple ideas? I do not want to steal your time if it is not something practical.
Have you tried using just Assign?
xxx:=@process yes.... Now I have it working with assign, but I saw those functions and I was wondering if with a function you could pass all the properties and events from one button to another without the name... now I do this with label... NewLabel := Tlabel.Create(nil); newlabel.parent := fmain; newlabel.caption:='Label1234567890123'; newlabel.onclick:=@sLabelClick; newlabel.name:='mylabel'+inttostr(i); With these previous functions, it seems that it will be possible to copy the properties and events from one button to another automatically, saving a lot of work.
Обсуждают сегодня