You can insert pictures in Memos. There's one command to insert a picture from a file BarIfxInsertPicture and another to adjust the formatting of that picture BarIfxPictureFormat.

 

Alventis supports the following image formats: Bitmaps (BMP), JPEGs (JPG/JPEG), GIFs (GIF), PNGs (PNG), Icons (ICO), Enhanced and regular Metafiles (EMF/WMF).

 

Support for GIF images includes support for transparency and animation. To toggle animation On/Off for all Memos use the Enable GIF Animation button BarIfxEnableGifAnimation.

PNG images can also be transparent, and this too is supported.

 

Inserting a picture is easy. Click the Insert Picture button, select the picture you want from the standard Open dialog, and you're done.

 

If you ever need to re-insert the same picture again, it's even easier: just drop-down the list of most-recently inserted pictures and pick the one you want. The list is accessible by clicking on the little arrow at the right edge of the very same Insert Picture button.

 

 

InstaButtonsPicture1B

 

Once we have our picture in the Memo, we can do a few things with it (aside from admiring its beauty). We can click on it to select it or do the same by selecting it with the mouse or via the keyboard as if it were a single character. This actually pretty much describes how pictures are aligned/treated in Memos: like a character, perhaps a very large one, but character nonetheless.

 

When the picture is selected, little sizing handles appear in its corners and at the middles of its sides. You can resize the picture with the mouse by dragging these handles around. Resizing by the corner always resizes it proportionally, i.e., it preserves the picture's aspect ratio. Resizing by the side handle allows you to go wild and freely change the aspect ratio.

 

InstaButtonsPicture1C

 

You can also drag the selected picture wherever you want in the same (or another) Memo. Drag-and-drop is a basic enough technique, so we won't go into it. Suffice it to say that you click the picture, drag the mouse where you want the picture to end up, and release the mouse.

 

There are a few other things you can adjust about the picture, but they require a dialog box.

 

InstaButtonsPicture1D

 

The Picture Format is an InstaButton, so it follows the principles of operation of all InstaButtons.

Its dropdown dialog allows us to specify the picture's size. We can either set it to Default, which means the picture's original size or 100%. We can also set its dimensions manually as either a percentage of its original size or explicitly, in pixels depending on the selected Units (see below).

 

Vertical Shift specifies how much the picture should be shifted relative to its normal alignment. Positive values shift it upwards, negative downwards.

 

InstaButtonsPicture1E

 

Units specify how you want to measure the Size and Vertical Shift: as a percentage of its original size or in pixels.

 

Spacing sets the amount of blank space you want to leave between the picture and its neighbors (text or other pictures).

 

Alignment selects how you want to align the picture relative to the baseline of the text on the same line. Bottom makes the picture "sit" on top of the baseline, much like an uppercase letter would. Middle aligns the mid-point of the picture with the baseline. Don't forget that you can still nudge the picture up or down by adjusting the Vertical Shift.

 

At this point you may be wondering how you can place a picture on the left and make the text flow around it on the right. The truth of the matter is: you can't. At least not directly. Floating pictures or similar picture alignments are not supported. The only way to arrive to the layout you may be after is to use Tables. For example, you could insert a suitably-sized table in a Memo (a single row with 2 columns would likely suffice). You would then insert the picture in the left cell and put the text in the right one. Depending on a variety of factors this may or may not prove to be particularly difficult.

 

InstaButtonsPicture1F