Home Why Omnibasic Features FAQ Examples
Reviews Keyword/Syntax On-Line Manual Download Manual ScreenShots

Chapter 13

Images and Icons

The IMAGE and ICON objects add to the attractiveness, clarity, and user-friendliness of an application.

Icons are essentially small images. The distinction lies in how they are declared (constructed) and applied (used).

The current version supports .gif images only. The Gif file must reside in the obw Directory. OmniBasic requires the .gif image to be converted into a byte array form. This may be accomplished in one of two ways. A supplied utility ( giftoicn ) may be run which will create an .icn file. The second and much more convenient method is to simply specify the .gif file in the construct statement. Examples:

CONSTRUCT MyIcon AS ICON WITH Test.gif
CONSTRUCT MyImage AS IMAGE WITH Pic.gif

The Icon MyIcon may then be used with any object that has an Icon property. Example:

Button1.Icon=MyIcon

The IMAGE is used in a similar manner, but is restricted to being used with an IMAGEVIEW object. Example:

CONSTRUCT Image1 AS IMAGEVIEW
CONSTRUCT MyImage AS IMAGE WITH Test.gif
Image1.Image=MyImage

Next Page: Chapter 14
Table of Contents


Home || Why Omnibasic || Features || FAQ || Examples
Reviews || Links || Privacy Statement || Top of Page

 

   Innomation Systems, Inc.

117 Morrison Ave. Morrison, MO 65061 (573) 294-6130

OmniBasic is a trademark of Innomation Systems, Inc., other trademarks are the property of their respective owners.
Innomation Systems, Inc. reserves the right to change prices and specifications without prior notice.
Copyright © 2000, 2001, 2002 Innomation Systems, Inc.