Hi all
Although the problem has been fixed, I thought this may be helpful and/or of interest to some of you. I have also added at the bottom a REQUEST FOR HELP regarding when changes to colour settings take effect (if anybody thinks that should be a different thread, I will post another message for that)
I have recently been experimenting with different colours in the code editor. I have been using VFP's own Tools~Options~Editor and have also been importing .REG files. Everything has been working fine until this morning (I have made no changes this morning).
I have tried "Reset All" and importing/merging a .REG file. I exported the VFP Options from Registry Editor and this is what the .REG contained (only relevant entries)
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\VisualFoxPro\9.0\Options]
"EditorCommentColor"="RGB(0,128,0,255,255,255), NoAuto, Auto"
"EditorKeywordColor"="RGB(0,0,255,255,255,255), NoAuto, Auto"
"EditorConstantColor"="RGB(0,0,0,255,255,255), Auto, Auto"
"EditorNormalColor"="RGB(0,0,0,255,255,255), Auto, Auto"
"EditorOperatorColor"="RGB(0,0,0,255,255,255), Auto, Auto"
"EditorStringColor"="RGB(0,0,0,255,255,255), Auto, Auto"
"EditorVariableColor"="RGB(0,0,0,255,255,255), Auto, Auto"
"EditorCommentStyle"="-1"
"EditorKeywordStyle"="-1"
"EditorConstantStyle"="-1"
"EditorNormalStyle"="-1"
"EditorOperatorStyle"="-1"
"EditorStringStyle"="-1"
"EditorVariableStyle"="-1"
Just after I started this message, I had another thought - in Registry Editor, delete all the Editor colour entries and start over. Hey presto, that solved the problem.
REQUEST FOR HELP
When I make changes to colours using Tools~Options~Editor, the changes take effect immediately. If I change one or more colours *from within* VFP by modifying the registry entries. The changes only take effect after restarting VFP. Is there/might there be a way to force VFP to respect the changed colours immediately?
Many thanks
Paul Newton
--- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html ---
On Tue, 15 Feb 2022, at 11:54 AM, paul.newton.hudl@gmail.com wrote:
Is there/might there be a way to force VFP to respect the changed colours immediately?
=SYS(3056,1)
"Forces Visual FoxPro to read its registry settings again and update itself with the current registry settings, or to write its settings to the registry."
Thanks Alan - I had never come across that one
Paul
-----Original Message----- From: ProfoxTech profoxtech-bounces@leafe.com On Behalf Of Alan Bourke Sent: 15 February 2022 13:01 To: profoxtech@leafe.com Subject: Re: VFP code editor syntax highlighting not working properly (totally screwed up) - SOLVED
On Tue, 15 Feb 2022, at 11:54 AM, paul.newton.hudl@gmail.com wrote:
Is there/might there be a way to force VFP to respect the changed colours immediately?
=SYS(3056,1)
"Forces Visual FoxPro to read its registry settings again and update itself with the current registry settings, or to write its settings to the registry."
-- Alan Bourke alanpbourke (at) fastmail (dot) fm
[excessive quoting removed by server]
TmljZS4g8J+Yig0KDQotLQ0KDQpyaw0KDQpGcm9tOiBQcm9mb3hUZWNoIDxwcm9mb3h0ZWNoLWJvdW5jZXNAbGVhZmUuY29tPiBPbiBCZWhhbGYgT2YgQWxhbiBCb3Vya2UNClNlbnQ6IFR1ZXNkYXksIEZlYnJ1YXJ5IDE1LCAyMDIyIDg6MDEgQU0NClRvOiBwcm9mb3h0ZWNoQGxlYWZlLmNvbQ0KU3ViamVjdDogUmU6IFZGUCBjb2RlIGVkaXRvciBzeW50YXggaGlnaGxpZ2h0aW5nIG5vdCB3b3JraW5nIHByb3Blcmx5ICh0b3RhbGx5IHNjcmV3ZWQgdXApIC0gU09MVkVEDQoNCk9uIFR1ZSwgMTUgRmViIDIwMjIsIGF0IDExOjU0IEFNLCBwYXVsLm5ld3Rvbi5odWRsQGdtYWlsLmNvbTxtYWlsdG86cGF1bC5uZXd0b24uaHVkbEBnbWFpbC5jb20+IHdyb3RlOg0KDQo+IElzIHRoZXJlL21pZ2h0IHRoZXJlIGJlIGEgd2F5IHRvIGZvcmNlIFZGUCB0byByZXNwZWN0IHRoZQ0KPiBjaGFuZ2VkIGNvbG91cnMgaW1tZWRpYXRlbHk/DQoNCj1TWVMoMzA1NiwxKQ0KDQoiRm9yY2VzIFZpc3VhbCBGb3hQcm8gdG8gcmVhZCBpdHMgcmVnaXN0cnkgc2V0dGluZ3MgYWdhaW4gYW5kIHVwZGF0ZSBpdHNlbGYgd2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vcy9uTkFOQ3JrRXZtUzIzWjZpUWlMa1M/ZG9tYWluPWxlYWZlLmNvbT4NCioqIEFsbCBwb3N0aW5ncywgdW5sZXNzIGV4cGxpY2l0bHkgc3RhdGVkIG90aGVyd2lzZSwgYXJlIHRoZSBvcGluaW9ucyBvZiB0aGUgYXV0aG9yLCBhbmQgZG8gbm90IGNvbnN0aXR1dGUgbGVnYWwgb3IgbWVkaWNhbCBhZHZpY2UuIFRoaXMgc3RhdGVtZW50IGlzIGFkZGVkIHRvIHRoZSBtZXNzYWdlcyBmb3IgdGhvc2UgbGF3eWVycyB3aG8gYXJlIHRvbyBzdHVwaWQgdG8gc2VlIHRoZSBvYnZpb3VzLg0K--- StripMime Report -- processed MIME parts ---multipart/alternative text/plain (text body -- kept) text/html---
Let's try this again...
Nice!
--
rk
From: ProfoxTech profoxtech-bounces@leafe.com On Behalf Of Alan Bourke Sent: Tuesday, February 15, 2022 8:01 AM To: profoxtech@leafe.com Subject: Re: VFP code editor syntax highlighting not working properly (totally screwed up) - SOLVED
On Tue, 15 Feb 2022, at 11:54 AM, paul.newton.hudl@gmail.commailto:paul.newton.hudl@gmail.com wrote:
Is there/might there be a way to force VFP to respect the changed colours immediately?
=SYS(3056,1)
"Forces Visual FoxPro to read its registry settings again and update itself with the current registry settings, or to write its settings to the registry."
-- Alan Bourke alanpbourke (at) fastmail (dot) fm
--- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html ---