# Colors on Checkboxes

**URL:** <https://www.dynamicsuser.net/t/colors-on-checkboxes/6214>\
**Category:** Developers Forum\
**Created:** [August 14, 2002, 11:12am UTC](https://www.dynamicsuser.net/t/colors-on-checkboxes/6214 "2002-08-14T11:12:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ryan\_Whittaker](https://avatars.discourse-cdn.com/v4/letter/r/6de8d8/32.png) [@Ryan\_Whittaker](https://www.dynamicsuser.net/u/Ryan_Whittaker)\
**Post date:** [August 14, 2002, 11:12am UTC](https://www.dynamicsuser.net/t/colors-on-checkboxes/6214/1 "2002-08-14T11:12:30Z")

</div>

Firstly is it possible to set the forecolor on checkboxes on list forms (or rather the ticks themselves)? Secondly, is it possible to assign a color to an entire record/line in a list form (without setting it on the Format trigger of each control). Thanks

---

<div class="post-metadata">

**Author:** ![stryk](https://avatars.discourse-cdn.com/v4/letter/s/ee59a6/32.png) [@stryk](https://www.dynamicsuser.net/u/stryk)\
**Post date:** [August 14, 2002, 11:42am UTC](https://www.dynamicsuser.net/t/colors-on-checkboxes/6214/2 "2002-08-14T11:42:34Z")

</div>

> quote:
> 
> * * *
> 
> Firstly is it possible to set the forecolor on checkboxes on list forms (or rather the ticks themselves)?
> 
> * * *

You can only set a **Background-Color** , but not by code. Maybe you could use a TextBox instead of a CheckBox!?

> quote:
> 
> * * *
> 
> Secondly, is it possible to assign a color to an entire record/line in a list form (without setting it on the Format trigger of each control).
> 
> * * *

No. A Record has no Color-Property, and a “Line” in a Form is not a **single** object, but a **collection** of TextBoxes, CheckBoxes, Indicators, etc… So you have to assign a property - if available - to each object. Regards, Jörg Joerg A. Stryk Apollo-Optik, IT/ERP Edited by - stryk on 2002 Aug 14 12:46:27

---

<div class="post-metadata">

**Author:** ![FGabriels](https://avatars.discourse-cdn.com/v4/letter/f/e95f7d/32.png) [@FGabriels](https://www.dynamicsuser.net/u/FGabriels)\
**Post date:** [August 14, 2002, 1:27pm UTC](https://www.dynamicsuser.net/t/colors-on-checkboxes/6214/3 "2002-08-14T13:27:27Z")

</div>

OnFormat trigger is a trigger to a textbox Just an example: OnFormat(VAR Text : Text[260]😉 0 : CurrForm.Front.UPDATEFORECOLOR(255);

---

<div class="post-metadata">

**Author:** ![FormerMember](https://avatars.discourse-cdn.com/v4/letter/f/74df32/32.png) [@FormerMember](https://www.dynamicsuser.net/u/FormerMember)\
**Post date:** [September 11, 2002, 10:00am UTC](https://www.dynamicsuser.net/t/colors-on-checkboxes/6214/4 "2002-09-11T10:00:57Z")

</div>

I defined a variable type TEXT. In stead of the boolean TRUE or FALSE I use space and Ö (symbol) Then u can update foreground CASE gvKeuze OF ‘1’: BEGIN Text:= ‘Ö’; CurrForm.regel.UPDATEFORECOLOR(16711680); END; ‘2’: BEGIN Text:= ‘Ö’; CurrForm.regel.UPDATEFORECOLOR(16711935); END; ‘3’: BEGIN Text:= ‘Ö’; CurrForm.regel.UPDATEFORECOLOR(65280); END; ‘4’: BEGIN Text:= ‘Ö’; CurrForm.regel.UPDATEFORECOLOR(255); END; ELSE BEGIN Text:= ’ '; CurrForm.regel.UPDATEFORECOLOR(16777215); END; END;
