PDA

View Full Version : Version 1.0 Officially Released!



Vincent Oorsprong
2-Jul-2009, 11:23 PM
Data Access Europe is proud to present the first official release of the Graphics Library for Visual DataFlex 2009. With the Graphics Library attached to your application workspace you can display pictures in many nowadays popular graphic formats. The graphic formats supported are Bitmaps (BMP), Icons (ICO), Graphic Interchange Format (GIF). Joint Photographic Experts Group (JPG), Exchangeable Image File Format (EXF), Portable Network Graphics (PNG), Tagged Image File Format (TIFF), Windows Metafile (WMF) and Windows Enhanced Metafile (EMF).
The Graphics Library uses Microsoft Windows GDI+ functions and the classes therefore do not rely on an installed ActiveX.

Library & Examples
The installer executable that you can download (http://www.dataaccess.nl/IframeText.asp?pageid=1670) installs both the library workspace as well as an examples workspace. In the examples workspace you will find two projects. The GraphicsDemo project is database aware and shows the pictures of people and products where the filenames are stored in the record of a table. The second example, named ImageGallery, is an application that lets you browse thru the drives and folders on your computer and shows the images present in that folder in a large icon style view. You can determine the size of the pictures, whether there should be a shadow, black background, what formats to support etc. Clicking an image will open a popup dialog in which the picture will be shown in a usually bigger size. The dialog is resizable. Because the source code of both projects is delivered you can use it to study various techniques.

Changes since the 0.9 Beta Release:

Library:

Bugfixes

GDI.h

Removed the duplicated / conflict settings with CharTranslate.Pkg
Added Use CharTranslate.pkg

cGDIPlus.h

Changed StrToWStr and WStrToStr now use the WideChar* functions from CharTranslate.Pkg

cImageContainer.Pkg

psImage retrieval on line 1141 moved to its own line




Example Workspace:

Bugfixes:

Support for folders and file with high ASCII characters such as o+umlaut
pbGripper setting in oDisplayOtionsMenuItem delegates to parent (=toolbar). Setting removed

Additions:

ImageGallery.Src

Your and the common pictures folder in the files treeview
Remember last folder and restore on reload
If you turn on the Grippers of the toolbars and Enable the docking of them the treeview and pictures containers will resize and relocate relative to the new location of the toolbars.
If you turn on the saving of the commandbar layout this will save the new location of the toolbars
Added a package named WindowsFolders.Pkg to get the new special folder names
Added a package name tBarSize.Pkg which contains the struct definition for BarClientSize

ImageZoomedDialog.Dg

Added ESC as on_key to do the same as the close button