Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 346664

Summary: disable aero visual styles (on trees at least)
Product: [Eclipse Project] Platform Reporter: John <M8R-sgiphk>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P3 CC: markus.kell.r, remy.suen
Version: 3.7   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=346531
Whiteboard:
Attachments:
Description Flags
the c# code (latest from my comp)
none
the compiled .exe for the above c# code none

Description John CLA 2011-05-20 08:39:28 EDT
Build Identifier: I20110518-2200

in windows 7, all trees have those kind of triangles that fade out which are used to expand/collapse items that have children. When the mouse is not hovering over the tree they fade and 

you're unable to tell at a glance if the node has children or not, 
for example in package explorer. This is rather time consuming and frustratingly annoying (not just in eclipse but also in any other place).

The [+] / [-] type of expand/collapse buttons would be preferable, also prevent them from fading out (because it's possible to see them and still fade out; the variant of seeing triangles and prevent them fading out is also possible)

for your information, here is a C# program that attempts to change all trees currently visible (and not in minimized windows) of all programs running in ie. windows 7 (assuming you have admin rights - ie. logging in as admin) into old style trees with [+] / [-] and without fading out. 


The OS does not provide a way to disable the fade out of expand/collapse buttons, even if they eventually do change to [+] / [-]. I tried to find a way once and failed due to lack of immediate access to what I though I needed in order to understand and apply a workaround fix.



Reproducible: Always

Steps to Reproduce:
like run eclipse in windows 7 (or vista?) and click in the package explorer then click in the editor while looking at the package explorer's expand/collapse buttons fade out, now which one has children and which not?

also same for Window->Preferences
Comment 1 John CLA 2011-05-20 08:40:44 EDT
see the attachments of this bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=346531
to see pictures of what triangles look like when focused or not and also the [+] / [-]
Comment 2 Remy Suen CLA 2011-05-20 08:46:20 EDT

*** This bug has been marked as a duplicate of bug 342282 ***
Comment 3 Markus Keller CLA 2011-05-20 09:48:24 EDT
(In reply to comment #0)
> for your information, here is a C# program that attempts to change all trees
> currently visible (and not in minimized windows) of all programs running in ie.
> windows 7 (assuming you have admin rights - ie. logging in as admin) into old
> style trees with [+] / [-] and without fading out. 

That would be interesting. Could you attach the C# code here? Maybe others could could profit from this. http://classicshell.sourceforge.net/ already implements something like this, but unfortunately only for the Windows Explorer.
Comment 4 John CLA 2011-05-20 09:53:45 EDT
Created attachment 196219 [details]
the c# code (latest from my comp)

it was from here (somehow the url got removed from post?):
http://social.msdn.microsoft.com/Forums/en-US/vclanguage/thread/658722b3-0568-4923-a736-7d2da5c7044f#1d8a378f-8d18-415c-98a9-725557eb5502
Comment 5 John CLA 2011-05-20 09:57:49 EDT
Created attachment 196220 [details]
the compiled .exe for the above c# code

changes all trees in all programs (that have non-minimized windows though) to the non-fade class style (like classicshell does)

I think you do need to be admin for this to work (unsure, since I'm always admin, even have UAC disabled), 

tested this on virustotal to be virus free (I don't think I should post the report link though? don't want to seem like an ad)