Color Dialog

guidorobbenguidorobben Member Posts: 157
Hi Does anybody know how to process the answer from the Color dialog.

I have:

CD: the common dialog OCX
Clr: Variant

CD.ShowColor
Clr := CD.Color;

Now I have a problem processing the value in the variant. I cannot use message. Does anybody know how to get the integer value form the variant/CD Color?

Guido

Comments

  • Marije_BrummelMarije_Brummel Member, Moderators Design Patterns Posts: 4,262
    I don't think this can be done in Navision. C/AL does not understand the datatype.

    You can make a wrapper in VB and let this return the Integer value.

    Maybe you can put this on the download section if youre finished :D

    You can also try to find a color dialog that already returns the rgb values or make one in Navision yourself.

    I've done the last thing myself. Just a small form that lets the user pick a color.
Sign In or Register to comment.