.NET

Reply
*Expert Elite*
_gile
Posts: 2,115
Registered: ‎04-29-2006
Message 1 of 5 (298 Views)
Accepted Solution

How to change the 'Window command' color

298 Views, 4 Replies
04-23-2012 11:00 PM

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

 

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

 

 

Moderator
Alexander.Rivilis
Posts: 1,449
Registered: ‎04-09-2008
Message 2 of 5 (293 Views)

Re: How to change the 'Window command' color

04-24-2012 01:12 AM 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

 

 


Пожалуйста не забывайте про Утвердить в качестве решения! Утвердить в качестве решения и Give Kudos!Баллы
Please remember to Accept Solution! Accept as Solution and Give Kudos!Kudos

*Expert Elite*
_gile
Posts: 2,115
Registered: ‎04-29-2006
Message 3 of 5 (289 Views)

Re: How to change the 'Window command' color

04-24-2012 01:23 AM in reply to: Alexander.Rivilis

Thank you very much Alexander.

Gilles Chanteau
Moderator
Alexander.Rivilis
Posts: 1,449
Registered: ‎04-09-2008
Message 4 of 5 (287 Views)

Re: How to change the 'Window command' color

04-24-2012 01:28 AM in reply to: _gile

Another way is P/Invoke acedGetCurrentColorsEx3/acedSetCurrentColorsEx3 function:

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

 


Пожалуйста не забывайте про Утвердить в качестве решения! Утвердить в качестве решения и Give Kudos!Баллы
Please remember to Accept Solution! Accept as Solution and Give Kudos!Kudos

*Expert Elite*
_gile
Posts: 2,115
Registered: ‎04-29-2006
Message 5 of 5 (278 Views)

Re: How to change the 'Window command' color

04-24-2012 02:46 AM in reply to: Alexander.Rivilis

Thanks, I finally solve it P/Invoking acedSetenv.

Gilles Chanteau
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!