/*
--------------------------------------------------------
Filename.....: speedTip.cc
ClassName....: speedTip
Purpose......: SDI form for programmable speedtips.
Multi-line capable.
Programmer...: Rick Miller - http://www.treturn.com/dbase
Date.........: January 04, 2005
Notes........: See Notes below.
Written for..: dBASE dB2K 0.1 and newer.
Rev. History.: See Revisions below.
Dependencies.: VStruct.prg or VStruct.cc or VStruct32Ex.cc,
and VStruct.h.
colorDlg.cc for use of selectColor().
fontDlg.cc for use of selectFont().
Usage........: set procedure to speedTip.cc additive
HelpFile.....: None.
Example:.....: See Example below.
SampleFile...: speedTip.wfm.
--------------------------------------------------------
Example:
--------------------------------------------------------
_app.speedTip = new speedTip()
_app.speedTip.open()
or
form.speedTip = new speedTip()
form.speedTip.open()
--------------------------------------------------------
Notes:
--------------------------------------------------------
When calling the set method:
1) be sure the 2nd parameter is of proper type().
2) passing an object property value is done by:
ie: set("padleft", int(form.sp.value))
ie: set("fontName", "" + form.ef.value)
To reset properties to default values call reset().
Protected methods begin with "x_".
Protected properties begin with "~".
--------------------------------------------------------
Revisions:
--------------------------------------------------------
March 11, 2005
1) fix for preassignment of usersave property.
2) increased alignment range to 5 so the speedTip
can be displayed relative to:
a) the mouse cursor (0 to 2).
b) a GUI object (3 to 5).
February 10, 2005
1) renamed all external functions.
January 19, 2005.
1) added initialization of textSize.winColor
in the textSize custom class.
--------------------------------------------------------
Keywords (parameter 1) for get and set methods:
--------------------------------------------------------
above, alignHorizontal, alignment, alignVertical,
background, colorNormal, fontBold, fontColor,
fontItalic, fontName, fontSize, fontStrikeout,
fontUnderline, gutter, iniFile, mdiApp, padBottom,
padHeight, padLeft, padRight, padTop, padWidth,
text, time, usersave.
--------------------------------------------------------
Properties:
--------------------------------------------------------
iniFile <char> _app.exename.ini
userSave <bool> TRUE
--------------------------------------------------------
Methods:
--------------------------------------------------------
get(<char> member) returns a Keyword value.
hide() hide the speedTip.
reset() reset properties to default values.
selectColor() calls the colorDlg.
selectFont() calls the fontDlg.
set(<char> member, <pValu> value)
set a Keyword value.
returns true/false.
show(<int> hwnd) displays the speedTip relative
to the GUI hwnd passed.
*/