2 Replies Latest reply: Oct 9, 2013 8:47 AM by Gysbert Wassenaar RSS

    Customizing color scheme

    Vincent Ardiet



      My client asks me if it's possible de customize the standard green color used to mark selections in QV.

      I know that in the document properties we can choose some green level with the "Color Scheme" drop down list but I was wondering if other alternatives are possible.

      I have found in the community someone talking about SelectionBgColor properties and I have try to use the example given in the API Guide for QV11. But it doesn't seem to work (no error but no effects).


      Here is the example :


      set p=ActiveDocument.GetProperties

      p.SelectionBgColor(1).PrimaryCol.Col = RGB (200,0,0)

      p.SelectionFgColor(1).PrimaryCol.Col = RGB (0,0,200)

      p.SelectionBgColor(5).PrimaryCol.Col = RGB (255,119,168)

      p.SelectionFgColor(5).PrimaryCol.Col = RGB (251,251,188)

      rem indexes

      rem 0=locked

      rem 1=selected

      rem 2=optional

      rem 3=deselected

      rem 4=alternative

      rem 5=excluded

      rem 6=excluded selected

      rem 7=excluded locked

      ActiveDocument.SetProperties p


      Has someone tried to use this example or this properties and what was the effects ?