Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I implement call to this API
Message
From
24/04/2000 21:32:01
 
 
To
24/04/2000 11:11:13
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00362548
Message ID:
00362983
Views:
19
Sorry Erik, but it didn't work. Seems assign method means just that, you must assign a value to a property. This is the code I used, perhaps somebody else will do better:

frmColorWatcher = CREATEOBJECT('_frmColorWatcher')
frmColorWatcher.Visible = .T. && To see what was happening


DEFINE Class _frmColorWatcher AS Form
Enabled = .F.

PROCEDURE Backcolor_Assign
LPARAMETERS tnBackcolor
ThisForm.Backcolor = tnBackcolor
DECLARE INTEGER GetSysColor IN win32api INTEGER nIndex
_SCREEN.ForeColor = GetSysColor(4) && Menu background
RETURN

PROCEDURE Forecolor_Assign
LPARAMETERS tnForecolor
ThisForm.Forecolor = tnForecolor
DECLARE INTEGER GetSysColor IN win32api INTEGER nIndex
_SCREEN.BackColor = GetSysColor(2) && Active window caption
ENDIF
RETURN
ENDDEFINE



>>I will use the assign method of an object whose color is determined by the windows selection and refresh from there.
>>
>
>
>Have you gotten this to work? If so, I would like to hear how...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform