How To Change The Color Of a Text Box

PremPrem Member Posts: 34
edited 2008-01-22 in Navision Attain
Hi Friends

I need to change the color of a textbox in a report while printing... say i want it to be blue... foreclor or foreground dosnt work..

Cheer's

Prem :roll:

Comments

  • kinekine Member Posts: 12,562
    No possibility to print in color in Navision... :cry:
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • PremPrem Member Posts: 34
    Then why is the color option there...?

    Regard's

    Prem
  • kinekine Member Posts: 12,562
    Only "inherited" from Edit box from form. And may be to get MS logo... :-)
    (there are more things that "is there" but not functional - string list etc.)
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Guga84Guga84 Member Posts: 24
    What about changing the color of the textbox in a form?

    Is it possible to change the color in executing time?

    Or for example, change the enabled state, I know how to do it in another languages, but not in C/AL.

    Is it possible to access to the properties of this kind of objects while executing?
  • kinekine Member Posts: 12,562
    Yes, there is a way. But just for limited set of properties. At first, the Control must have some Name (see Name property). Than you can see the control and his properties in Symbol menu (F5) under CurrForm variable (CurrForm - Controls) - do not forget that you can "scroll right" in the Symbol menu through the buttons under the lists...

    (Than you will have something like CurrForm.MyEditbox.ENABLED := false etc.). But you can change only color of text, not background. In most cases there is a little trick to "change" some properties in run-time - create two controls and change the Visible property for them (switching visibility between them - in this way you can "change" e.g. background color...)
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Guga84Guga84 Member Posts: 24
    That's a speedy answer!!! :shock:

    Thank you very much.

    Which is the property to change the color of the text in a textbox? Fore Color? I don't find that in the list.

    Another question related to this topic, Is it possible to change the background color of some rows of a table in a form?
    This could be in design time. :wink:
  • kinekine Member Posts: 12,562
    No, you cannot "alter" background color of selected row in the NAV... sorry...

    look at UPDATEFORECOLOR (and other properties in "AfterFormat" section in the Symbol menu for selected control...)
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
Sign In or Register to comment.