Using Win32 functions in Visual FoxPro Image Gallery
Font and Text
..msdn
CreateFont
DrawText
GetCharABCWidths
GetTextAlign
GetTextCharacterExtra
GetTextColor
GetTextExtentPoint32
GetTextFace
GetTextMetrics
SetTextAlign
SetTextCharacterExtra
SetTextColor
TextOut
Code examples:
How to put a horizontal text scrolling on the form (a news line, marquee)
How to put a vertical text scrolling on the form (a movie cast)
Placing On-screen Alert on top of all windows
Printing text on the main VFP window
Printing text with the Escape function
Splash Screen for the VFP application
Subclassing CommandButton control to create BackColor property
Using Font and Text functions
Using FrameRgn for displaying system colors
Using the DrawText function
Vertical Label control
SetTextColor
..msdn    Add comment     W32 Constants      Translate this page
Sets the text color for the specified device context to the specified color.
Code examples:
Placing On-screen Alert on top of all windows
Splash Screen for the VFP application
How to put a horizontal text scrolling on the form (a news line, marquee)
Subclassing CommandButton control to create BackColor property
How to put a vertical text scrolling on the form (a movie cast)
Vertical Label control
Printing text with the Escape function
Printing text on the main VFP window
Using FrameRgn for displaying system colors
Using the DrawText function
Declaration:
COLORREF SetTextColor(
  HDC hdc,           // handle to DC
  COLORREF crColor   // text color
);
FoxPro declaration:
DECLARE INTEGER SetTextColor IN gdi32;
    INTEGER hdc, INTEGER crColor
Parameters:
hdc
[in] Handle to the device context.

crColor
[in] Specifies the color of the text.
Return value:
If the function succeeds, the return value is a color reference for the previous text color as a COLORREF value. If the function fails, the return value is CLR_INVALID (0xFFFFFFFF).
Word Index links for the SetTextColor :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-09-08 12:00:00
Modified: 2001-11-26 16:03:36
Visited in last 7 days: 102
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 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.35), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.205.17.36)
38 sec.Function: 'RegOpenKeyEx'
52 sec.Function: 'TerminateProcess'
1.18 min.Function: 'RegQueryValueEx'
2.03 min.Function: 'ShellExecuteEx'
3.8 min.Function: 'SQLAllocEnv'
3.85 min.Function: 'waveOutWrite'
4.57 min.Function: 'WindowProc'
5.52 min.Function: 'WinExec'
Google
Advertise here!