Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing properties on a group of selected components

Status
Not open for further replies.

mdomeyko

Programmer
Sep 26, 2006
7
I need to change properties (size, color, form..) on a group of selected components (buttons, panels).
I know how to do it on a one by one basis, but not on a selected group of components. I also need to align the selected group....
Cant figure out how to select the group and then do the changes...
please help!
 
You can select more than one component in the IDE by holding down the shift key whilst you click on the second and subsequent components.

Andrew
Hampshire, UK
 
Thanks, but on run time.... it does not happen

Canguro
 
Use the tag property of a component to indicate which group of components you want the component to be a member of. Tag can be set at design and/or run time.

Write a procedure which iterates through the all the components and alters the attributes of the ones that are members of the required group.

Your procedure might look like this:
Code:
SetLeftAttribute( grouptag: integer; left: integer );

Andrew
Hampshire, UK
 
Thanks to all. At run time, when I press the right mouse button to select objects, I dont get that back-line effect .. How is that done?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top