Setting a position for a "group" box

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

in my form, i have several items selecterd as a "group." i want to set the
left edge of the group to 1.25 inches from the left side. however when i go
to group properties all items within the group box are now alligned at 1.25.
i don't want this. i was the "group box" to remain intact and have
everything shift over by the same ammount while the item with the left most
edge is located at 1.25. is that possible?
 
As you've found, when you select multiple controls and set a property, that
property applies to all of the controls selected.

There's no way to select a group and then type a property to only apply to
one control. You can, however, drag the group, and all controls will move as
one. Position the one control as best you can, and the rest will remain
relative to it.

Alternative, you could adjust their Left property in VBA. Recognize that in
code, the Left property is defined in terms of twips. (There are 1400 twips
to an inch, therefore 1.25" will be 1750):

Me.Control1.Left = 1750 + (Me.Control1.Left - Me.LeftMostControl.Left)
Me.Control3.Left = 1750 + (Me.Control2.Left - Me.LeftMostControl.Left)
Me.Control3.Left = 1750 + (Me.Control3.Left - Me.LeftMostControl.Left)
Me.LeftMostControl.Left = 1750
 
Ok. thanks for the help. i was hoping not to resort to VBA. you would think
MS would make it so when you make a "group" of items, it would treat it as
one object, keeping everything relative. just about every other program that
has "group items" features does this.

ohwell. just one of my many suggestions for a better product.

thanks again for the help though.
 
Back
Top