Board index » delphi » strange behavior when clicking on controls at design time
Gino Costa
![]() Delphi Developer |
Mon, 22 Mar 2004 12:27:51 GMT
strange behavior when clicking on controls at design time
Hello
I have a form with a ListBox or ComboBox set just the way I like it. I click it to hilight it, under edit, I select Copy. I go to another form in my app, where i want the same control with the same settings, so I simply Paste my control to the different form. I di this several times, with each control individually copied from the source form and pasted to the destination form, which needs several controls of the same type with the aame settings. I name each of the copied controls on my destination form differently and I do not copy one control to another this way on the same form to avoid creating pointers to controls like would happen in Visual Basic (I would create an array of controls there). Afterwards, when I double click on each of the placed controls in the destination form, I am taken to the VERY SAME click event no matter what control I click on, even though they all have different names. Delphi never even 'generates' code for click events for the other controls, just takes me to the same procedure for all of them. What is going on here? I looked in the property page and didn't see anything like an Index to an array of controls like what would happen in Visual Basic. And how do I fix this besides deleting all my controls and making each one from scratch each time, having to repeat all the same settings? Gino -----= Posted via Newsfeeds.Com, Uncensored Usenet News =----- |