Hello, I'm new at this so dont laugh too hard,
I've just created an Indicator control that will display a changing amount during runtime, this works, however I also want to change the color of the Gauge bar during runtime, acoording to the value in the srcexp... I have set a case of ranges which can distinguish which color should be used... but how do you change the color during runtime???
i figure it would be something like:
CURRFORM.<CONTROLNAME>.<Format Forecolor(#####)> does anyone know how to do this?
thanks for our help.
Dave.
0
Comments
John
If you don't, Navision will not recognize the control.
..Check this by pressing F5 in your C/Al editor.
Select CurrForm....Controls.
You will only find your indicater if you named it yourself.
Your tips helped though, but the Indicator(gauge control) doesnt have the forecolor property on runtime... so I couldnt change it, unless I changed the color before and just keep it that color.
either way, thanks for your help guys.
Much appreciated.
Dave.
John
This would re run-the Format property
If (condition = 100)or(condition = 200)or(condition = 300)Then
CurrForm.UPDATE;
Onformat trigger code change the font colour base on the condition.
Navision Service Partner
david@mindsource.co.uk
info@mindsource.co.uk