Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CodeMine Question
Message
De
08/08/2001 13:51:45
 
 
À
08/08/2001 13:09:57
Gary Taylor
East St. Information Systems
Essex Junction, Vermont, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
CodeMine
Divers
Thread ID:
00541380
Message ID:
00541421
Vues:
31
>Using CodeMine version 6.1.19, I'm trying (and apparently failing) to disable the Toolbar Delete button in certain circumstances. I understand how to create new states, my question is, how can I obtain an object reference to the Toolbar Delete button to use in the RequestRefresh method? Any help anyone can offer would be greatly appreciated.

Gary,

This might not be what you’re looking for, but in situations like this (for example, not data bound controls, ActiveX controls etc.), I had to trigger the refresh manually. This is what I did:

Whenever a state is changed, that isn’t picked up by Codemine, I call my own RefreshAll method which looks like this:
IF NOT ISNULL(THISFORM.oStatemanager)
	THISFORM.SetChanged()
	THISFORM.oStatemanager.RefreshAll('Form')
ENDIF
(I don’t run the form’s RefreshAll method, because this method also includes the native Refresh method, and I don’t want this.)

Then, in the IsEnabled method of the form, I have code that check for other conditions than Method/cWorkArea and return .T./.F. based on this instead.

This works fine for me, but I wouldn’t be surprised if there are better ways of doing it.

Jens Erik
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform