Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I implement call to this API
Message
De
24/04/2000 21:32:01
 
 
À
24/04/2000 11:11:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00362548
Message ID:
00362983
Vues:
17
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...
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform