Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid and Container
Message
De
08/08/2006 12:48:16
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
08/08/2006 12:44:06
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01143737
Message ID:
01143824
Vues:
7
>>>>>Hi Cetin,
>>>>>
>>>>>Thank's, it works if you have only a Grid, but in my case i have a container over the grid, any chance to do this with the same effect.
>>>>>
>>>>>João Batista
>>>>
>>>>What do you mean I gave the code and the pointers. What would it matter if there is a container in front or not.
>>>
>>>If it's a transparent container covering the grid, then the container is eating mouse events. That's how I understand "container over the grid".
>>
>>Hey Dragan,
>>I still can't understand the problem. I said he could use gridhittest,no?
>>Cetin
>
>Well if there's a container over the grid (i.e. with a higher zOrder), the grid wouldn't be hit at all, I presume. The mouse would be over the container. It would require some code in the mouse events of the container to pass the click down to the grid, and even then I'm not sure the tooltip would ever show, unless raised as an event - which is then just too much fragile code.
>
>I wonder why is there a container over the grid.


OK. Here is a smaple:
* Conatiner MouseMove event
Lparameters nButton, nShift, nXCoord, nYCoord
With Thisform.grdCustomer
  Store 0 To nWhere_Out , nRelRow_Out , nRelCol_Out , nView_Out
  If .GridHitTest(nXCoord, nYCoord, ;
      @nWhere_Out, @nRelRow_Out, @nRelCol_Out) And nWhere_Out = 3
    .ActivateCell(nRelRow_Out, nRelCol_Out)
  Endif
Endwith
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform