<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>3 Jan 2015 20:05:00 Z</lastBuildDate><pubDate>3 Jan 2015 19:14:00 Z</pubDate><description>Hi All,&#13;
&#13;
I have a looper control with several read-only numeric edit controls, with numbers 1-5 available. Each edit control has a linked attribute.&#13;
&#13;
I want to change the background colour depending on the value, using this code:&#13;
&#13;
PROCEDURE CHK_Other() noth is int = WIN_Assessments.LOOP_QRY_Assessments.ATT_other SWITCH noth CASE 0: WIN_Assessments.LOOP_QRY_Assessments.InjuriesOrDisease..BrushColor= RGB(195, 195, 195) CASE 1: WIN_Assessments.LOOP_QRY_Assessments.InjuriesOrDisease..BrushColor= RGB(34, 177, 76) CASE 2: WIN_Assessments.LOOP_QRY_Assessments.InjuriesOrDisease..BrushColor= RGB(181, 230, 29) CASE 3: WIN_Assessments.LOOP_QRY_Assessments.InjuriesOrDisease..BrushColor= RGB(255, 201, 14) CASE 4: WIN_Assessments.LOOP_QRY_Assessments.InjuriesOrDisease..BrushColor= RGB(255, 127, 39) CASE 5: WIN_Assessments.LOOP_QRY_Assessments.InjuriesOrDisease..BrushColor= RGB(237, 28, 36) END&#13;
I put the reference to the procedure in the 'Display a row of LOOP_QRY_Assessments.InjuriesOrDisease. The colours change according to the values in the first record, but do not refresh for subsequent records - they are all the same as for the first record (although the values update). The Looper gets data from a Query.&#13;
&#13;
Any comments or pointers welcome. I haven't used Loopers or developed for Android for long and don't understand some of the finer points.&#13;
&#13;
Thanks&#13;
&#13;
Pete</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/49691-19-android-update-changes-background-colour-edit-control/read.awp</link><title>WM 19 Android - update changes to background colour of edit control in Looper</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/49691-19-android-update-changes-background-colour-edit-control-49697/read.awp</comments><pubDate>3 Jan 2015 20:05:00 Z</pubDate><description>Thanks very much for your help Fabrice, that has solved my problem!&#13;
&#13;
And I understand Loopers a bit better now as well.&#13;
&#13;
Bes…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/49691-19-android-update-changes-background-colour-edit-control-49697/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/49691-19-android-update-changes-background-colour-edit-control-49697/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/49691-19-android-update-changes-background-colour-edit-control/read.awp">WM 19 Android - update changes to background colour of edit control in Looper</source><title>Re: WM 19 Android - update changes to background colour of edit control in Looper</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/49691-19-android-update-changes-background-colour-edit-control-49696/read.awp</comments><pubDate>3 Jan 2015 19:45:00 Z</pubDate><description>Hi Peter&#13;
&#13;
an attribute is linked to ONE property of a field...&#13;
so you need to create an attribute, link it to the brushcolor …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/49691-19-android-update-changes-background-colour-edit-control-49696/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/49691-19-android-update-changes-background-colour-edit-control-49696/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/49691-19-android-update-changes-background-colour-edit-control/read.awp">WM 19 Android - update changes to background colour of edit control in Looper</source><title>Re: WM 19 Android - update changes to background colour of edit control in Looper</title></item></channel></rss>
