Date: Thu, 28 Mar 2024 07:13:48 -0700 (PDT) Message-ID: <1661429843.195.1711635228142@wiki.srpcs.com> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_194_942491935.1711635228142" ------=_Part_194_942491935.1711635228142 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
An icon pane's icons.
Set_Property(OLECt= rlEntID, "OLE.Icons[Caption]", Array)
Array is a multivalued dynamic array with the following st= ructure:
Pos | Name | Type | Description |
---|---|---|---|
<0, 1> | Key | Text | A unique key for the image. |
<0, 2> | FilePath | Text | The image file. |
<0, 3> | Description | Text | The icon's optional description |
Index | Description |
---|---|
Caption | Caption of an existing icon pane |
The Icons property defines the icons for a specified pane. Icon panes ar= e created using the Panes= property. To target a specific pane, you must pass an existing pane's= caption as the index to this property.
The first value of each @FM delimited field is a unique key identifying = the icon. Even though you can have any number of icon panes, each icon key = must be unique to all other icons in all other panes. This ensures memory i= s used more efficiently. The sketch will use the key to determine which ico= n to draw. This allows you to later change the image associated with a cert= ain key, which will in turn change the image that appears in any sketch ref= erencing that key, even sketches that were originally created with the old = image.
The second value is the path to the icon's file image. Only a few basic = file types are supported, such as BMP, PNG, and JPG. PNG is recommended for= non-square images (that is, images with transparency in them).
The third value is an option description of the icon. The description wi= ll only appear in the pane. Icon descriptions never appear in the sketch it= self.
// Add icons to a = pane called Landmarks Icons =3D "" Icons<-1> =3D "Hiking" :@VM:"BMPS\Hike.png":@VM:"A place = to go hiking" Icons<-1> =3D "Shopping" :@VM:"BMPS\Shop.png":@VM:"A place to sp= end money" Icons<-1> =3D "Restrooms":@VM:"BMPS\Rest.png":@VM:"A place to see a m= an about a horse" Icons<-1> =3D "Vistas" :@VM:"BMPS\Vist.png":@VM:"A place = to see another place" Set_Property(@Window:".OLE_SKETCH", "OLE.Icons[Landmarks]", Icons)