Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
The color of comments in your code window
Message
De
03/10/2012 17:40:53
 
 
À
03/10/2012 17:33:18
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Divers
Thread ID:
01418690
Message ID:
01554268
Vues:
52
This can also be handled by a Thor tool, "Toggle Comment Colors", which allows you to define
two different color settings for your comments.

You can then set a hot key that will toggle between the two settings.

See the Thor home page in VFPX http://vfpx.codeplex.com/wikipage?title=Thor


>>>OK... try this for size:
>>>
*[2012/10/03 12:30] ndragan - from UT #1418747
>>>
>>>LOCAL oReg
>>>
>>>oReg = NEWOBJECT("FoxReg",HOME(2)+"classes\registry.prg")
>>>oReg.SetFoxOption("EditorCommentColor","RGB(0,0,0,128,250,250),NoAuto,NoAuto")
>>>oReg.SetFoxOption("CallstackSelectedColor","RGB(0,0,80,128,250,250),NoAuto,NoAuto")
>>>* this one doesn't work
>>>oReg.SetFoxOption("BookmarkColor","RGB(0,80,255,255,0,128),NoAuto,NoAuto")
>>>oReg.SetFoxOption("EditorConstantColor","RGB(128,0,128,255,255,255), NoAuto, Auto")
>>>oReg.SetFoxOption("EditorKeywordColor","RGB(0,64,128,255,255,255), NoAuto, Auto")
>>>oReg.SetFoxOption("EditorNormalColor","RGB(0,0,0,255,128,255), Auto, Auto")
>>>oReg.SetFoxOption("EditorOperatorColor","RGB(0,128,255,255,255,255), NoAuto, NoAuto")
>>>oReg.SetFoxOption("EditorStringColor","RGB(0,0,0,255,255,80), Auto, NoAuto")
>>>oReg.SetFoxOption("EditorVariableColor","RGB(0,0,128,255,248,255), NoAuto, NoAuto")
>>>
>>>oReg.SetFoxoption("CallstackFontName", "Consolas, 8, N, 1")
>>>oReg.SetFoxoption("LocalsFontName", "Consolas, 8, N, 1")
>>>oReg.SetFoxoption("OutputFontName", "Consolas, 8, N, 1")
>>>oReg.SetFoxoption("TraceFontName", "Consolas, 8, N, 1")
>>>oReg.SetFoxoption("WatchFontName", "Consolas, 8, N, 1")
>>>
>>>SYS(3056,1)
>>>
>>
>>PMFJI (I didn't know these options exist). So my question, can do you set one or some of these options temporarily, without setting them in registry? TIA.
>
>You can do most of this in the options dialog, but the choice of colors is limited and you have to set the font for each debugger window separately.
>
>The easiest thing, IMO, would be to simply have two sets of settings in a .prg like this - special and default, and then run one or the other whenever you want.
Jim Nelson
Newbury Park, CA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform