Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The GroupImage property sets a group's header image. The value of this property is an index into the group image list specified in the ImageList property. If there is no group image list, then this property is ignored. Set this property to zero to display no image.

The image is always aligned to the bottom left corner of the group's header. Thus, images that are taller than the group header extend above the header. Group header sizes are fixed, but you can use the Margins property to increase space between headers when you need more room for larger images. In the images below, note how the images extend slightly above the group header in the second image:

...


Group images only appear when the Theme property is set to "Office2000", "Office2003", or "WinXP".

...

Code Block
// Set an image in the group header 
Set_Property(@Window:".OLE_SHORTCUT", "OLE.GroupImage[1]", 2) 

// Remove all images from all groups 
Set_Property(@Window:".OLE_SHORTCUT", "OLE.GroupImage[All]", 0)

See Also

GroupCaptionItemImageMarginsImageListTheme