Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: IvanDj
  Where is IvanDj?
 Sofia
 Bulgaria
 IvanDj
 To: Anil Tayal
  Where is Anil Tayal?
 Delhi
 India
 Anil Tayal
 Tags
Subject: RE: Grid's DBLCLICK event
Thread ID: 16034 Message ID: 16166 # Views: 2 # Ratings: 0
Version: Unknown Category: General VFP Topics
Date: Thursday, October 10, 2002 11:22:16 AM         
   


> > > > > Hi,
> > > > >
> > > > > I want the grid's DBLCLICK to fire when the user DBLCLICKs in any column of a grid.Do I need to put a \VFP this.parent.parent.dblclick() \VFP in each text1 of each column of the grid ?
> > > > >
> > > > > Thanx,
> > > > >
> > > > > Anil
> > > >
> > > > Yes you do, the reason is that the texbox has focus and presidence before the grid gets focus. hope this helps.
> > > >
> > > > Paul Culbertson
> > > > - Home of the Visual FoxPro Experts
> > > > Owner/Consultant - PAC Software Design
> > > >
> > > > Houston, TX
> > > >
> > > > ICQ# 86933241
> > >
> > > This means the DBLCLICK event of the Grid is never fired on its own. It will always have to be called from the columns text boxes, unless I suppose all the columns are disabled.
> > >
> > > Anil
> > >
> >
> > Not exactly. The DBLCLICK even will fire if you double-click on the grid below the last line of the table. You see, the textbox isn't in the sections where a line of a table isn't being displayed.
> >
> > ---
> >
> > www.foxite.com - The Home of the Visual FoxPro Experts
>
>
> Oh yes, I forgot that. But whats the use of double clicking there when I want to open a edit window with the currently selected record on a double click. OK, I have understood that it is far less trouble in pasting a this.parent.parent.dblclick() in each text box's dblclick than devicing other ways. Thanx a lot.
>
> Anil

Easiest way is to create your own class (something like GridTextbox) based on standart Textbox. Then it will be enough to place only once this.parent.parent.dblclick() in DblClick event and replace standart textboxes in Grid with yours.

Hope this help.

Ivan

ENTIRE THREAD

Grid's DBLCLICK event Posted by aktayal @ 10/7/2002 8:04:58 PM
RE: Grid's DBLCLICK event Posted by Paul Culbertson @ 10/8/2002 6:11:14 AM
RE: Grid's DBLCLICK event Posted by aktayal @ 10/8/2002 6:32:28 AM
RE: Grid's DBLCLICK event Posted by Michael Gill @ 10/8/2002 10:29:30 PM
RE: Grid's DBLCLICK event Posted by aktayal @ 10/10/2002 6:49:57 AM
RE: Grid's DBLCLICK event Posted by IvanDj @ 10/10/2002 11:22:16 AM
RE: Grid's DBLCLICK event Posted by Michael Gill @ 10/10/2002 4:55:03 PM