Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
How to change display settings: screen resolution, screen refresh rate
Custom GDI+ class
Capturing keyboard activity of another application with the Raw Input API (VFP9)
How to print a bitmap file
How to display Windows On-Screen Keyboard
Winsock: sending email messages (SMTP, port 25)
System Image List Viewer
Using the LoadImage function to have a bitmap file loaded and displayed on VFP main window
Printing Image File, programmatically set print page orientation to landscape
How to convert a bitmap file to monochrome format (1 bpp)
Using EnumPrinters function to enumerate locally installed printers
Creating the Save dialog box to specify the drive, directory, and name of a file to save
Custom HttpRequest class (WinHTTP)
Using Video Capture: displaying on FoxPro form frames and previewing video obtained from a digital camera
Mapping and disconnecting network drives
How to download a file from the FTP server using FtpGetFile
The window and its ancestors
Using FoxTray ActiveX control: System Tray Icon and menu attached to VFP form
Custom FTP Class for Visual FoxPro application
Drawing Windows predefined bitmaps using the LoadBitmap functions
Displaying the associated icons and descriptions for files and folders
Displaying icons in the system tray (VFP9)
Sending email messages with Simple MAPI
How to activate Windows Calculator
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: 142  
    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 (107.20.7.65)
    2.22 hrs.Example: 'How to display a user-defined icon in the MessageBox dialog'
     Example: 'Setting the date and time that a file was created'
     Function: 'GdipGetMatrixElements'
    Function group: 'GDI+ Matrix'
    2.88 hrs.Function: 'CeDeleteRecord'
    Function group: 'Remote Application Programming (RAPI)'
     Function: 'GetWindowLong'
    Function group: 'Window Class'
     Example: 'How to copy the image of a form to the Clipboard using Bitmap API functions'
    3.57 hrs.Example: 'How to Start a Process as Another User (NT/XP/2K)'
    4.24 hrs.Example: 'Displaying the associated icons and descriptions for files and folders'
    4.25 hrs.Example: 'Enumerating Performance Counters'
     Example: 'Listing INF files in a specified directory'
    Google
    Advertise here!