Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Clicking on Grid
Message
De
03/09/2001 04:25:19
Jimi Lee
Pop Electronic Products Ltd.
Hong Kong, Hong Kong
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00551702
Message ID:
00551718
Vues:
16
Right!
I just found one more trouble from the program (it's written by another guy, i'm just modifying), every control in the grid already have code in the click event! So the Dblclick event will always be blocked by the click event... if there's no simple way to solve this, I think I have to go for the transparent container approach.. do you agree?

Jimi


>Hi!
>
>Conteiner is hard to handle in certain cases. You also need to forward clicks on the container to grid by some way, for example, using MOUSE command or using Windows API functions as in the FancyToolTip control.
>
>More simple approach is to add code to each column control to handle events, or make your own textbox class for grid in which you call your custom method or program.
>
>>Hi Cetin,
>>
>>Should I put containers on each row of the grid, or do you have any other suggestion to know which row did the user click on?
>>
>>Jimi
>>
>>>>Hello everyone,
>>>>
>>>>DblClick/Click/RightClick events not working on my grid, are there any restrictions on using them?
>>>>
>>>>I just wanna double click on an item then show in another grid it's detail, it have to be double click, any idea?
>>>>
>>>>Thanks in advance,
>>>>Jimi
>>>
>>>Jimi,
>>>Grid click/dblclick/rightclick is called only when you click at a part where there are no controls (cell content - like after last column or last row).
>>>You either write your code in each control,
>>>or (original idea from Nick) place a transparent container in front of grid. Container then gets the clicks and you're free to propagate them to underlying control or process in container methods.
>>>Cetin
error(503): file structure failure, signature file corrupted.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform