Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Ilya Rabyy
  Where is Ilya Rabyy?
 Fountain Valley
 California - United States
 Ilya Rabyy
 To: Anders Altberg
  Where is Anders Altberg?
 Anders Altberg
Subject: RE: Q. 4 VMP Experts: grdBase and chkTEBase
Thread ID: 209166 Message ID: 209565 # Views: 1 # Ratings: 0
Version: Visual FoxPro 9 Category: Classes and Objects
Date: Monday, December 29, 2008 4:45:16 PM         

> > Colleagues,
> >
> > I have two grids of class grdBase on a form;
> > Both of them have checkbox of class chkTEBase as Column1.CurrentControl;
> > Those grids have their own cursors as RecordSource (RecordSourceType = 2 - Alias);
> > User is supposed to switch focus back and force between the two to do his/her job for wich this form is being designed.
> >
> > What I want is, when I change the value of that Checkbox in whatever grid, the alias bound to this grid becomes the active working area. This is how I tried to do it:
> >
> >
SELECT (THIS.Parent.Parent.RecordSource)

> > in InteractiveChange, GotFocus and Click event procedures.
> > None of them worked properly, that is I have to click twice on a record/cell in that other grid to switch focus (or whatever) to fire the GotFocus (or whichever of those three) event procedure.
> >
> > I tried
> >
SELECT (THIS.Parent.Parent.RecordSource)

> > same result: gotta click twice on a grid's record to switch to this grid's alias' work area.
> >
> > Addl. Info: VMP 2005 version, with all the SPs there have had been since then.
> >
> >
> > Regards,
> >
> > Ilya
> I don't get the need for this. When the CheckBox is checked the Grid is implicitely selected and in focus and its RecordSource becomes automatically the selected workarea.
> -Anders

Yes, Anders, it should do so - but it does not! (If it did - I wouldn't have posted this inquiry here.) And - remind you! - I am dealing not with native VFP controls, but with twice/trice-subclassed Visual Maxframe Pro controls. And I do not know whether I am misconstructing something (I guess not) or it's a flaw in the VisionPace design (as I strongly sispect).




Q. 4 VMP Experts: grdBase and chkTEBase Posted by Ilya Rabyy @ 12/24/2008 7:53:37 PM
RE: Q. 4 VMP Experts: grdBase and chkTEBase Posted by Anders Altberg @ 12/25/2008 1:31:07 PM
RE: Q. 4 VMP Experts: grdBase and chkTEBase Posted by Ilya Rabyy @ 12/29/2008 4:45:16 PM