L
Lant
Setting the Text property of a commandbutton which is part of a group makes
it the Text property for the 'Group' Shape and centers it on the Group
instead of on the control. I found a few settings and props which could be
set to rectify this but in vain. The properties I have tried include
- Setting the 'Group Data' on Group Behavior (set on the master's property)
- Setting the 'IsTextEditTarget' Cell property (set programmatically to
'FALSE')
The text is set on the command button fine till I do the following to add it
to the group. The Group has no 'Text' currently. On executing the following
code, the Text property from the CommandButton is moveddown to the center of
the group.
Not sure if there is something about the sequence in which you Group, set
property, or set Text.
ActiveWindow.DeselectAll
ActiveWindow.Select
Application.ActiveWindow.Page.Shapes.ItemFromID(cmdShape.ID), visSelect
ActiveWindow.Select
Application.ActiveWindow.Page.Shapes.ItemFromID(grpShape.ID), visSelect
ActiveWindow.Selection.AddToGroup
-
it the Text property for the 'Group' Shape and centers it on the Group
instead of on the control. I found a few settings and props which could be
set to rectify this but in vain. The properties I have tried include
- Setting the 'Group Data' on Group Behavior (set on the master's property)
- Setting the 'IsTextEditTarget' Cell property (set programmatically to
'FALSE')
The text is set on the command button fine till I do the following to add it
to the group. The Group has no 'Text' currently. On executing the following
code, the Text property from the CommandButton is moveddown to the center of
the group.
Not sure if there is something about the sequence in which you Group, set
property, or set Text.
ActiveWindow.DeselectAll
ActiveWindow.Select
Application.ActiveWindow.Page.Shapes.ItemFromID(cmdShape.ID), visSelect
ActiveWindow.Select
Application.ActiveWindow.Page.Shapes.ItemFromID(grpShape.ID), visSelect
ActiveWindow.Selection.AddToGroup
-