.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
698 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