VDF-GUIdance logo



  Visual DataFlex Logo
  

Shared knowledge leads to accumulated knowledge

        Printer Friendly Page


Resizing grip

by Pieter van Dieren

Summary

A special mouse pointer, which allows a user to manipulate user interface elements such as a window. For example, a user can click and drag a sizing grip in the lower-right corner of a window to resize it.
Size: 48 KB Download
Date Created: 10/11/2002
Date Updated: 12/11/2002
Author: Pieter van Dieren
Company: Synerga


11 november 2002
pieter@synerga.nl

Description


The SizingGrip class makes it possible to show a small sizing grip bitmap in the lower right corner of dbViews and dbModalPanels.

This way users will know when they can resize a panel.

Usage



Unzip the file `SizingGrip.Zip' to your projects directory. It will create a workspace directory SizingGrip.
To view the example program that comes with this package, you first need to register the workspace.
Click on the file `Classes.VDFGuidance.SizingGrip.ws' in the Programs directory to register the workspace in VDF 8.x.

Then start the ide and open the program `Example'.
Compile and run the program to see what's happening.

Classes



cWsSizingGrip This class shows the sizing grip bitmap in the lower right corner.
cWsdbView A subclass of the standard dbView class. Some additional code is added to activate the sizing grip.
cWsdbModalPanel A subclass of the standard dbModalPanel class. Some additional code is added to activate the sizing grip.
cWsBitmapContainer A subclass of Wil's cvBitmapContainer class.
cvBitmapContainer A class which makes it possible to use transparent bitmaps

In order for the bitmap to appear, you need to set the border of the view or modalpanel to `Border_Thick'.

Credits



Special thanks to Wil van Antwerpen for sharing his cvBitmapContainer class which makes it possible
to use transparent bitmaps.
Don't forget to take a closer look at his vWin32fh.pkg package as well. It contains a collection of file
handle methods..

Download



SizingGrip.zip Zip file ~ 48 kB