I found out what is causing the color to not stay red. The "setprop dgHilite pBoolean"
Still working through the learning process :-) ____________________________ jim schaubeck 714.321.4499 -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Jim Schaubeck Sent: Wednesday, June 23, 2010 12:04 PM To: 'How to use Revolution' Subject: RE: Datagrid column/cell coloring I have this script in the "My Default Column Behavior" btn script on FillInData pData -- This message is sent when the Data Grid needs to populate -- this template with the column data. pData is the value to be displayed. set the text of the long id of me to pData ## temp workaround for CheckForPercent <-------------------Added a command to Trevor's original script end FillInData private command CheckForPercent <--------------------- This is the command script if the dgColumn of me is "Col 2" and the text of me <20 then answer "trigger"-- For testing <-------------------- I get this response on one of my cell containing "9" set the foregroundColor of me to "red" <-------------------- BUT the text does not get set to "red" else set the foregroundColor of me to "black" end if end CheckForPercent I get the answer box saying "trigger" but the text in the field does not get set to red Anyone know why??? ____________________________ jim schaubeck 714.321.4499 -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Jim Schaubeck Sent: Wednesday, June 23, 2010 11:16 AM To: 'How to use Revolution' Subject: RE: Datagrid column/cell coloring I saw that lesson but I do not want to apply the colorization decision in my code to every cell in the datagrid. How do I decipher what column and/or what row pData is from? ____________________________ jim schaubeck 714.321.4499 -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of JosepM Sent: Friday, June 18, 2010 4:04 PM To: [email protected] Subject: Re: Datagrid column/cell coloring Hi, Check this lesson, you can found how to color cells and control the data. http://revolution.screenstepslive.com/spaces/revolution_tools/manuals/datagr id/lessons/4202-How-Do-I-Override-the-Default-Behavior-For-Rendering-Data-to -a-Cell- 4202-How-Do-I-Override-the-Default-Behavior-For-Rendering-Data-to-a-Cell- Salut, Josep -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Datagrid-column-cell-coloring -tp2260342p2260834.html Sent from the Revolution - User mailing list archive at Nabble.com. _______________________________________________ use-revolution mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution _______________________________________________ use-revolution mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution _______________________________________________ use-revolution mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution _______________________________________________ use-revolution mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
