Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Active Cell colors and grid row colors
Message
 
 
To
09/09/2005 09:26:09
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01047803
Message ID:
01048073
Views:
16
>This code works also, BUT I changed this class to based on GRID not on CGRID. Also I comment
>loSelect = createobject('CSelect', this.recordsource) in createtag because I don't know wnat object is this.
>
It worked even with grdSorting as a subclass of cGrid. So, we narrowed down the problem to cGridTextBox class. In my colleague form where it works I see:
ADD OBJECT selectgroup.cgrid1.column1.cgridtextbox1 AS cgridtextbox WITH ;
		FontSize = 8, ;
		ReadOnly = .T., ;
		SelectedForeColor = RGB(255,255,255), ;
		SelectedBackColor = RGB(0,0,255), ;
		Name = "Cgridtextbox1"
And in my code, where it doesn't work, I see:
ADD OBJECT frminvestigatorqueuemgt.grdqueuemgmt.column1.cgridtextbox1 AS cgridtextbox WITH ;
		FontSize = 8, ;
		ReadOnly = .T., ;
		Name = "Cgridtextbox1"
E.g. it looks like I have to set SelectedForeColor and SelectedBackColor properties in the class level.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform