Information générale
Catégorie:
Codage, syntaxe et commandes
>Fabio,
>
>I didn't know about the second technique you gave. I'll be trying it out... Thanks.
>
>>* Image.MouseUp
>>IF m.nButton=1 AND VARTYPE(SYS(1270))=="O" AND SYS(1270)=m.this
>> * put click code here
>> * or
>> NODEFAULT
>> this.Click
>>ENDIF
Hi Craig,
practically it is that that ago internally VFP.
Unfortunately SYS(1270) ( a object ref function ) it returns. F.,
and EVL(SYS(1270),NULL) it cannot be used
because EVL(), as EMPTY () it doesn't allow
the use of an object reference;
a true infernal perversion.
This however it doesn't resolve the problem of the cell activate click.
Fix this is possible, but not simple.
The solution is that to capture the messages of Windows
and to write the code that them map on the rectangles that represent the objects of VFP.
Another true infernal perversion.
The container solution is simple, but:
- for a container in a cell the event gotfocus doesn't happen,
and therefore it is not simple to write a class generic GridCell.
The resize of a cell happens, but it is not propagated to the contained object,
this way Anchor doesn't work and to reorganize the image becomes a small
problem, but to reorganize all the objects of a container cell
in automatic and transparent way it is enough more complex.
Fabio
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement