Image Control

From Apache OpenOffice Wiki
< Documentation‎ | DevGuide
Revision as of 09:59, 22 October 2009 by BMarcelly (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search



If the user wants to display an image without the button functionality, the image control com.sun.star.awt.UnoControlImageControl is selected. The location of the graphic for the command button is set by the ImageURL property. Usually, the size of the image does not match the size of the control, therefore the image control automatically scales the image to the size of the control by setting the ScaleImage property to True.

  oImageControlModel = oDialog.Model.ImageControl1
  oImageControlModel.ImageURL = 
      "file:///D:/Office60/share/gallery/photos/beach.jpg"
  oImageControlModel.ScaleImage = True
Content on this page is licensed under the Public Documentation License (PDL).
Personal tools
In other languages