Using Win32 functions in Visual FoxPro Image Gallery
Extended MessageBox library (FLL) for Visual FoxPro
Nov 02, 2009.
Summary: With this library Visual FoxPro applications acquire ability of controlling a wide variety of MessageBox dialog settings.

That includes adjusting initial position and size of the dialog, selecting message font and font color, choosing dialog backgrounds from solid colors and bitmap files, modifying button captions & fonts, downloading dialog icons from icon files and resources, entering text, linking to web pages and more.

The extended settings are persistent and visible when regular MESSAGEBOX() function is called.

Now includes Visual Studio FLL project with complete C++ source code.

Regular price:
  Buy this solution for $30.00
Instant download link by email.

Price for subscribers:
Make payments with PayPal - it's fast, free and secure!   Buy this solution for $20.00
Instant download link by email.

Download demo
Contents
A picture is worth a thousand words
Download Demo Version
Download Help file
OS and VFP versions compatible
Windows 7 compatibility
End User License Agreement for the release version
Links
Contact Information

Watch video:
Styling MessageBox dialog in few typestrokes




A picture is worth a thousand words     ..top
 
SET LIBRARY TO xmsg.fll
 
xmsg_AssignMessageFont('Lucida Bright', 24)
xmsg_AssignMessageFontColor( RGB(12,57,126) )
xmsg_LoadBackcolorFromHatchBrush(1, 2, RGB(200,220,250))
xmsg_LoadBackcolorFromHatchBrush(2, 5, RGB(140,182,244))
xmsg_EnableUdfBackcolors(.T.)
xmsg_LoadIconFromResourceFile(0x80, _vfp.ServerName, 0)
xmsg_AssignButtonCaption(4, 'Agree')
xmsg_AssignButtonCaption(2, 'Strongly Agree')
xmsg_EnableUdfButtonCaptions(.T.)
xmsg_SetDlgMonitor(.T.)
 
= MESSAGEBOX('A picture is worth a thousand words.',;
    64+5, VERSION())
 
 
xmsg_AssignMessageFont('Times New Roman', 24)
xmsg_LoadBackcolorFromSolidColor(1, RGB(118,147,207))
xmsg_LoadBackcolorFromSolidColor(2, RGB(74,93,130))
xmsg_AssignMessageFontColor( RGB(22,58,130) )
xmsg_LoadIconFromIconFile(0x80, HOME(4)+'Icons\Win95\explorer.ico')
xmsg_AssignButtonCaption(4, 'Consentir')
xmsg_AssignButtonCaption(2, 'Sans Doute')
 
= MESSAGEBOX("Un bon croquis vaut mieux qu'un long discour.",;
    64+5, VERSION())
 
 
xmsg_AssignMessageFont('Times New Roman', 24, .T.)
xmsg_AssignDlgMaxSize(-360, -220)
xmsg_AssignMessageFontColor( RGB(12,57,126) )
xmsg_LoadBackcolorFromBitmapFile(1, 'samples\bg_360_220_002.bmp')
xmsg_LoadBackcolorFromSolidColor(2, RGB(156,156,156))
xmsg_LoadIconFromFileType(0x80, 'C:\Program Files (x86)\Skype\Phone\Skype.exe')
 
xmsg_EnableCheckBoxCtrl('Skip intro')
 
= MESSAGEBOX("Un bon croquis vaut mieux qu'un long discour.",;
    64+5, VERSION())
 
Download Demo Version     ..top
The demo version of the library excludes functions xmsg_EnableHRefCtrl and xmsg_ResetToDefault. It also displays on the dialog the link to the library web site, and adds the library name to the dialog title. Other than that, the demo version is competely functional.


The FLL library file is compiled with Visual Studio 2003. In order to use it, the VC71 runtime files must be installed on the computer:
        - msvcp71.dll
        - msvcr71.dll

If VFP9 is installed, most likely the VC71 Runtime is also installed.
Download Help file     ..top
Depending on PC's security settings, the Help File may need to be unblocked after downloading.

OS and VFP versions compatible     ..top
So far the library was found working well with VFP versions 7, 8 and 9 on computers running under Windows XP (32-bit Pro, Home), Vista (64-bit Pro, Home Premium), Windows Server 2008 (64-bit Standard SP2) and Windows 7 Ultimate (64-bit).

Also tested successfully with VFP7 running on Windows XP (32-bit Pro) machine.
Windows 7 compatibility     ..top
Jan.01, 2010: The library is now compatible with Windows 7.
End User License Agreement for the release version     ..top
This End User License Agreement is a legal agreement between 1361529 Ontario, Inc. and you, an individual or a company who has purchased the Extended MessageBox FLL library for Visual FoxPro.

This software is provided on "as is" basis without warranty of any kind, either expressed or implied.

You can include this library in unlimited number of your Visual FoxPro applications. You can distribute the FLL file of the library with unlimited number of installations of your Visual FoxPro applications as long as the library functions are called within the distributed application.

Otherwise the library may not be shared, distributed, resold or published without written permission obtained from 1361529 Ontario, Inc.

If included in the purchase, the source code of the library may not be shared, distributed, resold or published without written permission obtained from 1361529 Ontario, Inc. You may freely modify the source code, compile it, and include parts of it in your applications.

Microsoft Visual FoxPro and Microsoft Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners.
Links     ..top
  • Donwload VC71 Runtime files
  • Contact Information     ..top
    1361529 Ontario, Inc.
    Anatoliy Mogylevets
    E-Mail:
    devicecontext@msn.com
    Nov 02, 2009.
    Regular price:
      Buy this solution for $30.00
    Instant download link by email.

    Price for subscribers:
    Make payments with PayPal - it's fast, free and secure!   Buy this solution for $20.00
    Instant download link by email.


    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.212.158)
    1.49 hrs.Function: 'RegSetValueEx'
    Function group: 'Registry'
     Example: 'GDI+ fun: roach-infested desktop'
    2.67 hrs.Example: 'Reading entries from Event logs'
     Example: 'How to put a vertical text scrolling on the form (a movie cast)'
    4.71 hrs.Function: 'RemoveDirectory'
    Function group: 'File Management'
     Example: 'Winsock: how to retrieve a service information corresponding to a port'
     Example: 'How to display the Print property sheet'
    5.29 hrs.Function: 'SetKeyboardState'
    Function group: 'Keyboard Input'
     Example: 'Time in milliseconds represented as string (e.g. 1 hour 24 min 36 sec)'
    7.21 hrs.Example: 'Extracting the name and extension parts of a path string'
    Google
    Advertise here!