Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Fichiers
Recherche: 

Detect MouseEnter in grid cells without the cells having the focus
Gregory Adam
Allows to detect MouseEnter (see Thread#1398534 ) in grid columns The cells do not need to have the focus It's an object that has to be added to the form. Once added to the form you can tell it to 'watch' one or more columns. To add a 'watched' column you call a method passing - the ControlSource of the column - a FieldExpression that will be evaluated - a form method or any function name that will be called when the mouse enters the column. The corresponding FieldExpression is added as a parameter See sample When running the sample and moving the mouse over the command buttons of the grid - watch the textboxes above the grid
Créé le
Il y a 14 années
Téléchargements
1520
Type de fichier
Freeware
Résultat de votes
5.00/5.00
General information
Résultat de votes:
5.00/5.00 (2 rates) Évaluer cet item
Description
Allows to detect a MouseEnter into one or more columns of a grid. The grid cells do not need to have the focus Upon a mouse enter, a form method or a function will be called with its corresponding evaluated FieldExpression The ControlSource of the column to watch does not have to be equal to the FieldExpression, but it may At the end of the grid's init or in the form init See sample in Form.Grid1.Init (at the end)
local CompanionObj

do case
case !GridCompanion_Add(GridObjectReference, @m.CompanionObj)
	&& error
case !m.CompanionObj.ColumnMouseWatcher_Add( ;
				ControlSourceOfColumnToWatch, ;
				FieldExpression, ;
				FormMethod ;
			)
	&& error

endcase

To remove a 'watched' column
	ColumnMouseWatcher_Remove(ControlSourceOfColumnToWatch)
How it works A DynamicFontShadow clause is added to the Column Evaluation of that clause adds the evaluated FieldExpression to a collection Dynamic clauses are evaluated left to right and top to bottom In order to keep the collection in sync with the part of the grid that is displayed, it has to be cleared at certain points in time (BindEvent to some events of the grid) A way to force the re-evaluation of the Dynamic clauses is to change the grid's Height (resize)
Créé par

Commentaires
Ajouter un commentaire
More downloads created from this member
Gregory Adam
MD5 hash algorithm implementation : http://www.faqs.org/rfcs/rfc1321.html
Créé le
Il y a 14 années
Téléchargements
1968
Type de fichier
Freeware
Gregory Adam
RC4 encryption class .......................................................
Créé le
Il y a 14 années
Téléchargements
1612
Type de fichier
Freeware
Gregory Adam
Complex patterns are hard to build. This class allows to build the pieces in a hierarchical way.
Créé le
Il y a 14 années
Téléchargements
970
Type de fichier
Freeware
Gregory Adam
A topological sort sorts out dependencies and returns an order in which each predecessor is processed before any of its successors.
Créé le
Il y a 14 années
Téléchargements
1846
Type de fichier
Freeware
Gregory Adam
Collection of 4 VFP functions in an FLL: (1) at_bm() - Tuned Boyer-Moore string search (2) AddProperty() - add Property to any object (3) Callback_Set() - returns a function address that can be used for callbacks (4) Callback_Release() - releases a previously allocated function address. Includes...
Créé le
Il y a 20 années
Téléchargements
1787
Type de fichier
Gregory Adam
SafeArray class. Up to 13 dimensions, lower and upper bounds per dimension, number of elements limited by available space in pagefile. Supports mixed type arrays, as well as arrays of a same type like String, Char, Short, Integer, Float and Double
Créé le
Il y a 20 années
Téléchargements
904
Type de fichier
Gregory Adam
It just goes through the file and invokes the function supplied for each variable. This means that you can use MemFileShow() without any modification and customize your needs by writing a function and supplying its name. See Mem_defined() in the program.
Créé le
Il y a 21 années
Téléchargements
1211
Type de fichier
Résultat de votes
5.00/5.00
Gregory Adam
A few Folder-and-File related functions based on API, such as an extended adir_(), FolderCopy(), FolderRemove(), FolderMove(), FileExists(), etc. They were developed on Win98SE, VFP6 SP3. Tested on Win98 SE and Win2K as far. Should work on Win95. Be careful with the FolderRemove(). It does not ask ...
Créé le
Il y a 22 années
Téléchargements
1604
Type de fichier
Résultat de votes
4.50/5.00