Colors on Checkboxes

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

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

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

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;