.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to change the 'Window command' color

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
_gile
699 Views, 4 Replies

How to change the 'Window command' color

Hi,

 

I need to programmatically change the 'Window command' (Commande de fenêtre in French) color. I didn't find anything in Application.Preferences neither in the registry.

Has anybody a solution ?

Thanks.

 

By 'Window command' I'm talking about the feature comming with A2012 displayed in the upper left corner of model space windows:

WindowCommand.png



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

4 REPLIES 4
Message 2 of 5
Alexander.Rivilis
in reply to: _gile

 

HKEY_CURRENT_USER\Software\Autodesk\AutoCAD\RXX.X\ACAD-YYYY:ZZZ\FixedProfile\Editor Configuration

2D Model viewport control color

Parallel viewport control color

Perspective viewport control color

 

 

Відповідь корисна? Клікніть на "ВПОДОБАЙКУ" цім повідомленням! | Do you find the posts helpful? "LIKE" these posts!
Находите сообщения полезными? Поставьте "НРАВИТСЯ" этим сообщениям!
На ваше запитання відповіли? Натисніть кнопку "ПРИЙНЯТИ РІШЕННЯ" | Have your question been answered successfully? Click "ACCEPT SOLUTION" button.
На ваш вопрос успешно ответили? Нажмите кнопку "УТВЕРДИТЬ РЕШЕНИЕ"


Alexander Rivilis / Александр Ривилис / Олександр Рівіліс
Programmer & Teacher & Helper / Программист - Учитель - Помощник / Програміст - вчитель - помічник
Facebook | Twitter | LinkedIn
Expert Elite Member

Message 3 of 5
_gile
in reply to: Alexander.Rivilis

Thank you very much Alexander.



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

Message 4 of 5
Alexander.Rivilis
in reply to: _gile

Another way is P/Invoke acedGetCurrentColorsEx3/acedSetCurrentColorsEx3 function:

    /* Viewport control for various contexts */
    DWORD dw2DModelVportControl;
    DWORD dwParallelVportControl;
    DWORD dwPerspectiveVportControl;

 

Відповідь корисна? Клікніть на "ВПОДОБАЙКУ" цім повідомленням! | Do you find the posts helpful? "LIKE" these posts!
Находите сообщения полезными? Поставьте "НРАВИТСЯ" этим сообщениям!
На ваше запитання відповіли? Натисніть кнопку "ПРИЙНЯТИ РІШЕННЯ" | Have your question been answered successfully? Click "ACCEPT SOLUTION" button.
На ваш вопрос успешно ответили? Нажмите кнопку "УТВЕРДИТЬ РЕШЕНИЕ"


Alexander Rivilis / Александр Ривилис / Олександр Рівіліс
Programmer & Teacher & Helper / Программист - Учитель - Помощник / Програміст - вчитель - помічник
Facebook | Twitter | LinkedIn
Expert Elite Member

Message 5 of 5
_gile
in reply to: Alexander.Rivilis

Thanks, I finally solve it P/Invoking acedSetenv.



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost