The whole grid wasn't blank - only the lines that got selected. It was a background/foreground coloring issue. But, its an issue no more - it's been solved.
Regards, Kurt Wendt Consultant
Tel. +1-212-747-9100 www.GlobeTax.com
-----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Koen Piller Sent: Tuesday, February 09, 2016 2:07 PM To: profoxtech@leafe.com Subject: Re: Multi-Select Grid & Foxite Code Issue (Was...RE: A Question of ListBoxes)
Hi Fyi classes was introduced with VFP3 so not so new. Your 'blank' grid sounds like you need the safe select as introduced by Andy Kramek back in early '90's. Google for " safe select " in Foxite Rgds Koenp
Op dinsdag 9 februari 2016 heeft Kurt Wendt Kurt_Wendt@globetax.com het volgende geschreven:
Hey Mike - thanks for all your help on this topic. In the end, I will have to admit - I tossed out using a Sub-classed Grid. My manager, she was getting a bit worried about me implementing this in the system I was working on. Worried that things could go wrong with it in production. As folks mentioned here - my VFP is like 3 Hotfixes behind. But, they were not about to apply any of those hotfixes - for fear of breaking things. And, she felt that since the Classes stuff in VFP was the "Newer" type of tech. in VFP - put in later and at a time after M$ was already planning to Kill VFP. As such - she was wary.
Also, I was having problems implementing stuff - and that's why I was trying to use that BindEvent(). So - in the end - I used a Little bit of code & techniques from that Foxite code - but, applied it only to a regular Grid. And, there is no using of Shift-Click to select groups of records. Its simply implemented that if you click a record - its selected and highlighted. And, to select more records - you simply click on more records. That's it. Its basically working now - except one of the QA guys here is testing it for me - and he's testing on a Win10 machine - and the one of the two grids - upon selecting the record - the record gets blanked out - like its White on White. But, strangely - only on the one grid. Am still trying to fix that issue - then I will be done with this part of the project...
Regards, Kurt Wendt Consultant
Tel. +1-212-747-9100 www.GlobeTax.com
-----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com javascript:;] On Behalf Of mbsoftwaresolutions@mbsoftwaresolutions.com javascript:; Sent: Thursday, February 04, 2016 5:55 PM To: profoxtech@leafe.com javascript:; Subject: RE: Multi-Select Grid & Foxite Code Issue (Was...RE: A Question of ListBoxes)
On 2016-02-03 16:45, Kurt Wendt wrote:
Wow - didn't realize I was 3 Hotfixes behind! But, I don't control it here.
I just spoke to my manager about it - and, no - its not going to happen - no updating with HotFixes. No way to know if the hotfixes actually break something that was working - and she said we just can't take that chance.
I actually WANTED to put that Data_Resort() call directly into a Click event - but, the Click Events and the Columns are not available at design time in the subclassed Grid.
AS for the BindEvent. I tried it. The Method I created is at the main Grid level of the subclasses Grid. I did the BindEvent in Init of the Form. At that point the Columns & Click events in the subclassed Grid are accessible after I set the RecordSource. So I did a Bind of a Method to the Click Event. Problem is - when its actually running - and it runs the Event - within that Event as its running - its at the Grid level and NOT the Column level. So at that point I can't actually pass the Column ControlSource to let the code know Which field the Sort needs to be based upon.
So - as of now - my attempt to use the BindEvent actually failed...
Usually this is my data requery event (handtyped for this email):
[thisform.GetRecords method] local liCnt as integer
if vartype(this.grd) = "O" then this.grd.SaveSource() endif
liCnt = this.obiz.MyRoutineThatGetsTheData()
if vartype(this.grd) = "O" then this.grd.RestoreSource() endif
That takes care of only running grid code when it's present.
[excessive quoting removed by server]