Options

How to change the Colors of Controls Dynamically

ajaybabuChajaybabuCh Member Posts: 208
Hi

We want to develop an application with Graphics like Graphs,Charts.

How to change the Color of the controls dynamically.


AJAY INDIA
Ajay

Comments

  • Options
    Marije_BrummelMarije_Brummel Member, Moderators Design Patterns Posts: 4,262
    Hi,

    You cannot change the color of Shapes. You can add a number of shapes in different colors and make them visible/unvisible.

    What you are trying to do has been done before, even by Navision in 4.0.

    Mostly the results are very poor.

    Better to wait for employee portal when you can combine navision data with other programs.

    You can also use 3rd party solutions. There are some specificly designed for Navision.

    Greetz,

    Marq
  • Options
    rossirossi Member Posts: 36
    Hi!

    In the OnFormat trigger of the control put a statement like

    CurrForm.MyControl.UPDATEFORECOLOR(colorValue);

    where MyControl is the name property of your control and colorValue is an integer in RGB format which represent the new color

    Rossi
  • Options
    Marije_BrummelMarije_Brummel Member, Moderators Design Patterns Posts: 4,262
    @Rossi

    A shape does not have an OnFormat trigger.
  • Options
    Timo_LässerTimo_Lässer Member Posts: 481
    If you have Navision 4.0, you can get some impressions within the forms 630, 631 and 632 (Bar Charts).
    These forms draw bar charts without using 3rd party components.
    Timo Lässer
    Microsoft Dynamics NAV Developer since 1997
    MSDynamics.de - German Microsoft Dynamics Community - member of [clip]
Sign In or Register to comment.