Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Image in grid not receiving click event
Message
From
27/08/2005 04:45:36
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01044500
Message ID:
01044508
Views:
12
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform