Using Win32 functions in Visual FoxPro Image Gallery
Device Context
..msdn
ChangeDisplaySettings
CreateCompatibleDC
CreateDC
DeleteDC
DeleteObject
EnumDisplayDevices
EnumDisplaySettings
GetDC
GetDeviceCaps
GetObject
GetObjectType
ReleaseDC
SelectObject
Code examples:
Converting twips to pixels and vice versa
Creating a window using CreateWindowEx function
Drawing standard Windows icons
Form Magnifier
GDI+ fun: roach-infested desktop
GDI+: Color Transparency
GDI+: Creating thumbnails to preview images in a directory
GDI+: Scrolling through large image using the mouse
How to make a VFP form fading out when released (GDI version)
How to view icons stored in executable files (Icon Viewer)
How to view icons stored in executable files (Icon Viewer) - II
Placing an arbitrary rectangular area of main VFP window on the Clipboard
Placing On-screen Alert on top of all windows
Printing text on the client area of the main VFP window
Retrieving graphic capabilities of your display
Using GetNearestColor
How to make a VFP form fading out when released (GDI version)

User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
More code examples    Listed functions    Add comment     W32 Constants      Translate this page Printer friendly version of this code sample
Before you begin:
When a VFP form is released, usually it disappears immediately. Wouldn`t it be nice to have a form slowly (or less slowly) fading out?

An obvious way of doing that is covering the form with another window, which holds the image of the original form. Once covered, the original form disappears. After that the covering window gradually changes its opacity (alpha channel) from opaque (255) to completely transparent (0).

This code sample is based on solely GDI calls, no GDI+ library is required. Beside fading, the form is shrinking too.

See also:
  • How to make a VFP form fading out when released (GDI+ version)
  • How to draw custom Window Caption on FoxPro form
  • Animating a transition of the VFP form (a wire-frame rectangle)
  •  
      Members area. Log in to view this example.
     
      User name:
      Password:
     
     
      Forgot your password?
     
      Sign up for
    the Membership
     
     


    User rating: 0/10 (0 votes)
    Rate this code sample:
    • ~
    10568 bytes  
    Created: 2007-04-24 16:23:35  
    Modified: 2009-03-03 14:41:02  
    Visits in 7 days: 173  
    Listed functions:
    BitBlt
    CreateCompatibleBitmap
    CreateCompatibleDC
    CreateRectRgn
    CreateSolidBrush
    CreateWindowEx
    DeleteDC
    DeleteObject
    DestroyWindow
    FillRect
    GetDC
    GetSystemMetrics
    GetWindowDC
    GetWindowLong
    GetWindowRect
    RealGetWindowClass
    ReleaseDC
    SelectObject
    SetLayeredWindowAttributes
    SetWindowLong
    SetWindowRgn
    StretchBlt
    Printer friendly API declarations
    Word Index links for this example:
    Translate this page:
      Spanish    Portuguese    German    French    Italian  
    FreeTranslation.com offers instant, free translations of text or web pages.
    User Contributed Notes:
    There are no notes on this subject.


    Copyright © 2001-2013 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

    Privacy policy
    Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.1.55-log), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
    Last Topics Visited (54.242.188.217)
    3 sec.Example: 'Creating an Open dialog box to specify the drive, directory, and name of a file to open (Shell32 version)'
    1.88 hrs.Function: 'PeekMessage'
    Function group: 'Message and Message Queue'
    2.58 hrs.Function: 'CreateNamedPipe'
    2.59 hrs.Example: 'Capturing keyboard activity of another application with the Raw Input API (VFP9)'
    6.92 hrs.Example: 'Using shared memory to exchange data between two FoxPro applications'
     Function: 'GetGraphicsMode'
    9.5 hrs.Example: 'GDI+: reading and writing metadata in JPEG and TIFF files'
    14.13 hrs.Example: 'Closing Windows'
     Example: 'Enumerating connections made to a shared resource for the local computer (WinNT only)'
    14.82 hrs.Function: 'SQLRowCount'
    Function group: 'ODBC API'
    Google
    Advertise here!