Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Custom GDI+ class
Splash Screen for the VFP application
Subclassing CommandButton control to create BackColor property
Enumerating devices installed on the local machine
Obtaining names and positions for shortcuts located on the Windows Desktop
How to make a VFP form fading out when released (GDI version)
Printing text with the Escape function
How to put a vertical text scrolling on the form (a movie cast)
Displaying dimmed window behind VFP top-level form
Vertical Label control
GDI+: Implementing image scrolling with inertia
How to print a bitmap file
Class library providing access to the System Registry
How to put a horizontal text scrolling on the form (a news line, marquee)
Detecting changes in connections to removable drives (VFP9)
Moving shortcut to a specified position on the Windows Desktop
System Image List Viewer
How to play AVI file on the _screen
Creating a console window for Visual FoxPro application
Converting image file to .ICO file
How to enable the SE_SHUTDOWN_NAME privilege for the application
Winsock: retrieving Web pages using sockets (HTTP, port 80)
Disconnecting USB Mass Storage Device programmatically
How to ping a remote site using ICMP API calls
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: 361  
    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-2018 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.6.39), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
    Last Topics Visited (23.22.240.119)
    15 sec.Function: 'PathIsNetworkPath'
    Function group: 'Shell Lightweight Utility APIs -- Path Functions'
    20 sec.Examples
    29 sec.Example: 'Obtaining names and positions for shortcuts located on the Windows Desktop'
    36 sec.Example: 'How to put a vertical text scrolling on the form (a movie cast)'
    44 sec.Function: 'InternetGoOnline'
    Function group: 'Internet Functions (WinInet)'
    50 sec.Updates
    58 sec.Function: 'JetGetColumnInfo'
    Function group: 'Extensible Storage Engine (ESE, Jet Blue)'
    1.08 min.Function: 'PathFindFileName'
    Function group: 'Shell Lightweight Utility APIs -- Path Functions'
    1.45 min.Function: 'midiOutGetDevCaps'
    1.57 min.Updates
    Google
    Advertise here!