Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
How to change display settings: screen resolution, screen refresh rate
Enumerating data formats currently available on the clipboard
Adding and deleting Scheduled Tasks using NetScheduleJob API functions
Winsock: sending email messages (SMTP, port 25)
Mapping and disconnecting network drives
Winsock: retrieving directory listing from an FTP server using passive data connection (FTP, port 21)
Capturing keyboard activity of another application with the Raw Input API (VFP9)
Converting Unicode data from the Clipboard to a character string using a given code page
Custom GDI+ class
Disk in drive A:
How to display the Properties dialog box for a file (ShellExecuteEx)
Enumerating network resources
Detecting changes in connections to removable drives (VFP9)
Enumerating raw input devices attached to the system (keyboard, mouse, human interface device)
How to download a file from the FTP server using FtpGetFile
Using EnumPrinters function to enumerate locally installed printers
How to play AVI file on the _screen
Retrieving the name of the network resource associated with a local device
Creating a console window for Visual FoxPro application
Running MSDOS Shell as a child process with redirected input and output (smarter RUN command)
Custom HttpRequest class (WinHTTP)
Custom FTP Class for Visual FoxPro application
How to put a horizontal text scrolling on the form (a news line)
Deleting files into the Recycle Bin
Switching between keyboard layouts

User rating: 9.33/10 (3 votes)
Rate this code sample:
  • ~
More code examples    Listed functions    Add comment     W32 Constants      Translate this page Printer friendly version of this code sample
Versions:
click to open
Before you begin:
The form in this code sample displays input languages available for the current process and allows switching between them.



In VFP9, this form also tracks input language changes initiated by a hot key or via Windows Taskbar. A form must have the keyboard focus to immediately reflect a change in input language.





See also:

  • LanguageBar ActiveX control



  • Saving available locale records into a cursor
  • Retrieving national language settings
  • Capturing keyboard activity of another application using the Raw Input API
  •  
      Members area. Log in to view this example.
     
      User name:
      Password:
     
     
      Forgot your password?
     
      Sign up for
    the Membership
     
     


    User rating: 9.33/10 (3 votes)
    Rate this code sample:
    • ~
    4391 bytes  
    Created: 2002-02-08 21:32:59  
    Modified: 2011-03-24 10:34:21  
    Visits in 7 days: 160  
    Listed functions:
    ActivateKeyboardLayout
    CallWindowProc
    GetKeyboardLayout
    GetKeyboardLayoutList
    GetKeyboardLayoutName
    GetWindowLong
    Printer friendly API declarations
    My comment:
    The keyboard layout status, if any shown in the taskbar, reflects the layout selection made on the form.

    The name of the input locale identifier (keyboard layout) is a string composed of the hexadecimal value of the language identifier (low word) and a device identifier (high word).

    For example, English (United States) layout has a language identifier of 0x0409, so this layout is named "00000409". The variants of it (such as the Dvorak layout) are named "00010409", "00020409", and so on.

    The indentifiers in the list correspond to the current set of input locales used by the system. The LoadKeyboardLayout function activates selected input locale identifier.

    * * *
    List of Locale IDs, Input Locale, and Language Collection
    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:
    Rovshan | 2005-10-25 16:17:11
    Thank you for this site.
    Pavel | 2007-04-05 08:14:11
    Thanks!
    It's just what I looked for

    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 (72.44.48.122)
    4 sec.Function: 'JetRetrieveColumn'
    Function group: 'Extensible Storage Engine (ESE, Jet Blue)'
    3.09 hrs.Example: 'Get the power status of your laptop computer'
     Function: 'GdipDisposeImage'
    6.28 hrs.Function: 'LocalSize'
    6.62 hrs.Example: 'Displaying the main Dial-Up Networking dialog box'
     Example: 'How to create a desktop shortcut (shell link)'
     Example: 'Creating a directory on the FTP'
    6.74 hrs.Function: 'getservbyname'
     Function: 'NetMessageNameAdd'
    Function group: 'Network Management'
    10.83 hrs.Example: 'Round FoxPro form'
    Google
    Advertise here!