Using Win32 functions in Visual FoxPro Image Gallery
System Information
..msdn
ExpandEnvironmentStrings
GetComputerName
GetComputerNameEx
GetComputerObjectName
GetCurrentHwProfile
GetKeyboardType
GetNativeSystemInfo
GetProductInfo
GetSysColor
GetSystemDirectory
GetSystemInfo
GetSystemMetrics
GetSystemRegistryQuota
GetSystemWow64Directory
GetUserName
GetUserNameEx
GetVersion
GetVersionEx
GetWindowsDirectory
IsNetworkAlive
SetComputerName
SetSysColors
SystemParametersInfo
Code examples:
An alternative way of setting Form.Closable to False
Clipping mouse cursor area
Creating irregularly shaped FoxPro form using transparency color key
GDI+: how to make VFP controls visually shake and shudder
How to draw custom Window Caption on FoxPro form
How to make a VFP form fading out when released (GDI version)
How to make a VFP form fading out when released (GDI+ version)
Placing On-screen Alert on top of all windows
Retrieving various system metrics
Round FoxPro form
Splash Screen for the VFP application
Tracking mouse movement to detect when to start dragging
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: 191  
    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 (23.22.252.150)
    2.21 hrs.Example: 'Obtaining information about all user accounts on a server (WinNT only)'
     Function: 'GdipNewInstalledFontCollection'
    12.02 hrs.Function: 'WNetGetUser'
     Example: 'Simple Window Viewer'
    12.14 hrs.Function: 'GdipDrawLineI'
    Function group: 'GDI+ Graphics'
     Example: 'Displaying system dialog that selects a folder'
    13.67 hrs.Example: 'Finding parameters for the region specified'
     Example: 'Splash Screen for the VFP application'
    17.17 hrs.Example: 'Enumerating the subkeys of a user-specific key'
     Function: 'GdiFlush'
    Google
    Advertise here!